Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

Multiple http Params for RestAPI connections

Ankyt19
Regular Contributor
Regular Contributor

Hi Team,

We have couple of powershell scripts which will be used for different types of usecases in updateAccountJSON of RestAPI connectors .

We are able to trigger one of the scripts as per standard syntax mentioned below . We want 2 different files with different parameters to be triggered and PowerShell can do its work accordingly . Please help us know if there is any syntax to call 2 files using httpParams ?

"httpParams": "{\"Script\":\"Powershell.exe d:\/Saviynt\/powershell1.ps1 \\\ {user.customproperty44}\\\"\"}"

Above httpParams is used to call powershell1 . Now we need to have if (condition){call powershell1 and call powershell2  ) else {call powershell 2}

Or httpParams syntax which should run both the scripts once rules are triggered .?

#RestAPI , @restAPI , @Connector,#connector

Thanks

ANkit

 

 

2 REPLIES 2

Ankyt19
Regular Contributor
Regular Contributor

@rushikeshvartak  and @avinashchhetri  can you please help us with this?

rushikeshvartak
All-Star
All-Star

 


"httpParams": "{\"Script\":\"${if(task.tasktype==3){Powershell.exe d:\/Saviynt\/powershell1.ps1 \\\ {user.customproperty44}\\\"\"}else {Powershell.exe d:\/Saviynt\/powershellelse1.ps1 \\\ {user.customproperty44}\\\"\"}}"

 

 


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