Page 1 of 1

Mapping multiple variables

Posted: Wed Sep 18, 2013 9:55 am
by Oliver Pechey

Hi there, I need to send multiple local storage variables via email. So how do I map all of them onto "text" of the sendgrid service. It seems you can only map one at a time.

Any suggestions would be appreciated. Thanks! :)

Image


Mapping multiple variables

Posted: Wed Sep 18, 2013 10:37 am
by Kateryna Grynko

Hi Oliver,

Before calling the service that passes the data, you should run JS code which collects all the needed values ​​in the right format string - the string can also be stored in localStorage and passed as a parameter.

Or you can create a handler for this option (click Add JS) to save the value from mapping in the variable value. Other parameters stored in localStorage can be selected and added to the result in the code. It is important that the function returns the result, and it will be used as the parameter value. Remember that as a value the string is expected.