Re: Send email V2 string error
@zerou
No worries at all, I can go into more detail:
- Just after your trigger, add a step to "Initialize a variable", call it varNewLine, the type would be string, and then put your cursor in the Value box and just hit enter. (this stores a 'carriage return' in the variable).
- Then in your first compose, get rid of the dynamic value that's there (we'll put it back, don't worry) and then click in the field to get the little window to pop up that lets you add values.
- Switch over to the Expression side and type "Replace(" (without the quotes) and then click on Dynamic Value in the same little window, and select the same email field you had in there before. Then go back to your expression and type ", " and then get the output from your variable in the same manner.
- Then go back to your expression and finish it off with ", '; ' )" (again without the double quotes, but you'll need the single quotes in there).
This expression basically says "Look at the email address, and anywhere you find a carriage return, replace it with a semi-colon and a space.
Then you can use the output of that compose in the "to" field of your email.
Keep us posted.
-Ed
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.