Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Unable to split parm in email script

dauger
Kilo Expert

Hello devs!

 

I am having trouble with parm2 in an email script I am writing.

 
var parm = event.parm2;
var splitParm = parm.split('~');

 

Using that code I had thought splitParm would be delimited by ~ but when I print splitParm the data is delimited by ;

 

Am I going about this the wrong way? How can I have parm2 use ~ as a delimiter?

 

Let me know if there's any other information needed.

1 ACCEPTED SOLUTION

@Juhi Poddar @Tanushree Maiti 

Thank you for all of your help! I discovered the input source for parm2, it was part of a workflow that I overlooked and an event in that workflow delimited by ;

 

I have since changed the ; to ~ and everything is working as expected, thanks again!

View solution in original post

10 REPLIES 10

@Juhi Poddar @Tanushree Maiti 

Thank you for all of your help! I discovered the input source for parm2, it was part of a workflow that I overlooked and an event in that workflow delimited by ;

 

I have since changed the ; to ~ and everything is working as expected, thanks again!