How to use managerAccount in servicenow json config?

jralexander137
New Contributor
New Contributor

Hi! I am trying to leverage managerAccount.accountID in the create json config for servicenow connection. I can't seem to figure out the proper syntax to do a null check before sending the value. This is what I currently have but even with or without this check, the call fails. Removing this mapping causes the api call to succeed.

 

\"manager\":\"${if(managerAccount)!=null){managerAccount.accountID} else {''}}\"

I have also tried

\"manager\":\"${if(managerAccount.accountID)!=null){managerAccount.accountID} else {''}}\"

1 REPLY 1

rushikeshvartak
All-Star
All-Star

Can you share full json


Regards,
Rushikesh Vartak
If the response is helpful, please click Accept As Solution and kudos it.