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 ImportUserJSON - string manipulation

trace001
New Contributor II
New Contributor II

Hi Team,

In REST connector's ImportUserJSON , under colsToPropsMap - does Saviynt support replace or other similar function to manipulate data received from API's.  

For example: if Email is 'John.Smith@test.xxx.com' could this be set as 'john.smith@xxx.com' using a replace function or something similar. Does Saviynt support this? 

Can date format be changed to a different timezone? 

Thanks,

 

 

2 REPLIES 2

Raghu
Valued Contributor III
Valued Contributor III

use it like below

mail = John.Smith@test.xxx.com

user?.mail.toLowerCase()

or if it const try like below

"Email": "#CONST#${String mail = response.call1.message.responseMessage; mail = mail.toLowerCase(); return mail}~#~char",


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

rushikeshvartak
All-Star
All-Star

You can use preprocessor to manipulate data 


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