and more in a single search tool across platforms. Read the announcement here. |
02/28/2024 07:59 AM - edited 02/28/2024 08:00 AM
Hi Team,
We are seeing strange behavior with SOAP & AD connection types. Previously working json are not working now.
For instance, UUID function does not generate a value rather the function is passed as it is to the target.
Certain if else condition including ternary operator not able to replace the values dynamically instead the entire logic is sent as it is.
Solved! Go to Solution.
02/28/2024 07:56 PM
Please share json
03/11/2024 09:37 PM
@rushikeshvartak e.g. below json does not work for AD connection type. Not sure what is wrong here.
"displayName":["${if(user.customproperty3.toString.length()>20) {user.customproperty3.toString.substring(0,20)} else {user.customproperty3}}"],
03/11/2024 11:03 PM
"displayName": ["${user.customproperty3.length() > 20 ? user.customproperty3.substring(0, 20) : user.customproperty3}"]
03/11/2024 11:08 PM
Thanks, I think I tried ternary operator as well. Will try again. So If-else will not work with functions now or the format is incorrect?
03/06/2024 10:17 AM
As per Saviynt there are specific formats which will work only in LDAP & REST and not in SOAP e.g.
"attrABC":[
"${if(task.source.equals('REQUEST')){if(user.employeeType=='Contractor') {DA} else {DA1}} else {if(task.source.equals('ZERODAY')) {binding.hasVariable('DA') ? DA : ''}}}"
],
\"attrABC\": \"${if(user.customproperty1=='ABC') {userManager.customproperty1} else if(user.customproperty1=='XYZ') {user.customproperty1} else if(user.customproperty1=='LMN' && user.customproperty6!='') {user.customproperty2} else {DA+'00'}}\",
Also, we can use https://www.jdoodle.com/execute-groovy-online to verify json formats but I don't know how to use this yet.