and more in a single search tool across platforms. Read the announcement here. |
05/13/2023 01:01 AM - last edited on 05/16/2023 03:50 PM by Dave
{
"call": [
{
"name": "call1",
"callOrder": 1,
"connection": "${(user?.employeeclass.equals('FTE')?('acctAuth'):('')}",
"url": "${(user?.employeeclass.equals('FTE')?('https://abc.com'):('')}",
"httpMethod": "POST",
"httpParams": "{\"name\": \"email\",\"value\": \"${user.email}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
]
}
}
]
}
05/16/2023 11:51 PM
Hi @Sivagami
Analyzing the if-else condition in the JSON, I see that there is a bracket missing in the condition.
Please try with the below condition:
"connection": "${user.employeeclass == 'FTE'?'acctAuth':''}",
"url": "${user?.employeeclass =='FTE'?'https://abc.com':''}",
Thank you
Vedanth B.K
05/22/2023 01:36 AM
Hi @Vedanth_BK - My bad with the example. I actually altered the original condition for example purposes. The original condition syntax is all good but still the task is stuck in pending. You can reference the logs in the ticket for more clarity - https://saviynt.freshdesk.com/support/tickets/1628139