- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 01:57 AM
Hi There
REST OUTBOUND MESSAGE JSON FORMAT to mid server to runbook
i am trying to pass a
value parameter FolderPath = G:\ak\shared18
it works if the user type in
G:\\ak\\shared18
i still want the user to type in G:\ak\shared18, is there a way around this
do i modify the outbound message to pass thru a escape character
Thanks
Levino
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2020 01:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 02:26 AM
Can you post a snippet of how are you passing? . you may use escape character to print black slash in javascript string variable.
https://www.w3schools.com/js/tryit.asp?filename=tryjs_string_escape_backslash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 02:45 AM
{
"Name": "Folder Path (e.g. 'G:\\ak\\Shared01'",
"Value": "${FolderPath}"
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 03:33 AM
If I understood correctly, you want the user to type only single back slash, but you wanted to pass double black slashes from script?. If this is the requirement then you need to use string manipulation methods.
Example:
var str = 'value_entered_by_user';
var res = str.replace(/\//gi, "\\\\");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 11:52 PM
thanks , thats correct