- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 10:33 PM
Hello Experts,
While triggering 3rd party REST API I need to send the string value via query parameter "The document has been Approved by Manager 07/04/2024 0:46:51 AM (0000001)" When i trigger REST Message the string value is getting replaced %20 and some unknown values "The document has been Approved by Manager 07%2F04%2F2024+0%3A46%3A51+AM+%280000001%29". Because of this I am getting 400 error while triggering 3rd Party API. How to avoid this . Request you to help.
Thanks& Regards
Swathi Padighar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 10:42 PM - edited 04-09-2024 10:42 PM
You can pass encodedString but I think the issue is somewhere else. But please try it first-
var originalString = "The document has been Approved by Manager 07/04/2024 0:46:51 AM (0000001)";
var encodedString = encodeURIComponent(originalString);
// Now use encodedString in your REST message
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 10:42 PM - edited 04-09-2024 10:42 PM
You can pass encodedString but I think the issue is somewhere else. But please try it first-
var originalString = "The document has been Approved by Manager 07/04/2024 0:46:51 AM (0000001)";
var encodedString = encodeURIComponent(originalString);
// Now use encodedString in your REST message
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 11:15 PM
Thanks a lot this worked