- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 08:45 AM
Hello all,
Ran into a weird request. I have to enter a Windows file path into a child incident work notes. The child ticket is created via a UI action. If I keep \\test\test\filelocation in the script. The translation is not correct. I never had to do this before, and I think it's a unique ask. Has anyone run into a similar issue and found a workaround?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 10:12 AM
Hello @Wyatt Fudal1 ,
In JavaScript, the backslash (\) is an escape character, which means it's used to introduce special character sequences. If you want to include an actual backslash in a string, you need to escape it using another backslash.
So Instead of "\\test\test\filelocation", use "\\\\test\\test\\filelocation".
Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.
Regards,
Siddhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 10:12 AM
Hello @Wyatt Fudal1 ,
In JavaScript, the backslash (\) is an escape character, which means it's used to introduce special character sequences. If you want to include an actual backslash in a string, you need to escape it using another backslash.
So Instead of "\\test\test\filelocation", use "\\\\test\\test\\filelocation".
Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.
Regards,
Siddhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2024 05:49 AM
Hello @Wyatt Fudal1 ,
Does this solution helped you. Please let me know.
If yes, It would be great if you mark my response as CORRECT or Helpful so that others can see this on top of the list and get benefited by this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 04:40 PM
It worked thank you.