Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

rest connector- can we use if else condition in ImportUserJSON

iam01
Regular Contributor
Regular Contributor

rest connector- can we use if else condition for a list in ImportUserJSON 

 

 

EX:
"employeeid": "${if(response.workAssignments[0] !=null && response.workAssignments[0].primaryIndicator && response.workAssignments[0].payrollFileNumber !=null) { return response.workAssignments[0].payrollFileNumber} else if(response.workAssignments[1] !=null && response.workAssignments[0].primaryIndicator && response.workAssignments[1].payrollFileNumber !=null) { return response.workAssignments[1].payrollFileNumber} else {return 'DataNotFound'} }~#~char"

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

You can try simple if else condition to validate if its works or not


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.

Simple if else works but indexing an array is not working