We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Unable to split parm in email script

dauger
Mega 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!