Flow Designer - adding "substring to remove last character of string"

Victor Ruiz
Tera Guru

Trying to strip the last character of this string in flow designer 1593196951393.661cda55-c732-4317>   

Can this be done in flow designer?

 

find_real_file.png

 

 

 

 

1 ACCEPTED SOLUTION

Chander Bhusha1
Tera Guru

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 @sachin.namjoshi .

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

View solution in original post

7 REPLIES 7

Hi Dirk...thanks for the help.  How do I pass the value from the "Get Email Header" to the script that @CB suggested?

 

find_real_file.png

Thanks Dirk....I figured out how to pass the value.

How did you pass the value to the inline script?