- 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-26-2020 01:46 PM
You need to use script action in flow designer to do this
Regards,
Sachin
- 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-26-2020 10:06 PM
Thanks for the help....how do I pass the value to the action for processing and back to the flow?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2020 10:43 PM
Hi
Instead of creating your own Action first, which is a bit more work to do, you could just write an inline script.
You can so do, by clicking the "fx" button on the right of your field (see screenshot below):
Note: Take care, NOT to click the "FX" button again, after capturing the function. This would "deactivate" the function!!!
Here, you can place a bit more code, just to cut of the last character in a standard JavaScript way.
Let me know if that answers your question and mark my answer as correct and helpful.
BR
Dirk