and more in a single search tool across platforms. Read the announcement here. |
02/28/2024 11:15 PM
Hi Team,
We have a requirement to pass the current user status from Saviynt to target application. However, when we are passing status as below- it is failing as the garget app has defined status as integer at their end but are getting string from Saviynt. Can you please help on how we can update below so it pass the value as integer.
\"Active\": \"${user.statuskey==1?1:0}\"
02/28/2024 11:31 PM
@Kaushik1 try below
Integer.parseInt(${user.statuskey==1?1:0})
02/28/2024 11:35 PM
To confirm- will it be added as below?
\"Active\":Integer.parseInt(${user.statuskey==1?1:0})
02/29/2024 12:05 AM
Hi @Kaushik1 ,
Can you try below expression and check.
\"Active\":${user.statuskey}
02/28/2024 11:36 PM
yes, you can try
02/29/2024 12:27 AM
hi,
try this.
\"Active\": ${user.statuskey==1 ? 1 : 0}
Regards,Arvind
02/29/2024 02:23 AM
HI @Kaushik1 , Status key on Saviynt side is also integer. The use of " in JSON might be the cause.
Try in postman first and check which JSON format works :
"Active" : 1 or "Active" : "1"
If "Active" : 1 , this is what target accepting then try \"Active\":${user.statuskey} in Saviynt JSON.
If this doesn't work in Saviynt then try parseInt function
Thanks,
Amit