- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2020 12:28 PM
Trying to strip the last character of this string in flow designer 1593196951393.661cda55-c732-4317>
Can this be done in flow designer?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2020 01:58 PM
Hi Victor,
Since its OOB action so there you have to specify the index and as per your requirement the string length is not constant so you have to go with the custom actions only as said by
In the action to stripe the last character you can use the following code:
var a = '1593196951393.661cda55-c732-4317>';
var st = a.toString();
var req = a.substring(0,a.length-1);
gs.print(req); //for testing purpose remove this line
Mark helpful and correct if it helps.
Thanks,
CB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2020 02:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2020 08:00 PM
Thanks Dirk....I figured out how to pass the value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2021 01:07 PM
How did you pass the value to the inline script?