Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Dealing with & in Rest Calls

JEllis
New Contributor III
New Contributor III

I need to send this rest call in the URL with 2 parameters (The endpoint does not accept the properties in the call body)

"url": "https://xxxxxxxxxxxxxxxxx/users/${arsTasks.accountName}?employeeClass=${user.employeeclass}&termDate..."yyyy-MM-dd\")}",

When Using the & for the additional parameter int the url it get changed to \u0026. The endpoint does not support this. 

When Using %26 the %26 gets passed in the URL but the end point does not support this. 

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

You don't need to hardcode & in URL https://forums.saviynt.com/t5/saviynt-knowledge-base/how-to-use-special-characters-of-target-applica...


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

I have tried every combination of encoding and not encoding and the endpoint does not like the call including the following.

Failed url-https://xxxxxxxxxx/users/010134?employeeClass=EMP\u0026termDate=2020%2D01%2D01

This is the working CURL command from Postman.