Here is the reason: I have to use this email 6 different times in my flow. I'd like to have one place to modify the basic form of the email, so when changes are needed I don't have to make changes in six different places. Suggestions?
Hi Bob -
Thanks.. I know that's how I'm supposed to code/assign variables, but then I still have to make the same changes to 6 different location, so what's the point in creating variables for the other values (contained in the email) as opposed to using the values themselves. Is it worth the extra coding??
except.... I could make the requested change on the first one and be able to copy and paste that into the other 5 without having to update. I guess the real question is how often are changes going to be requested? Which in the beginning I think often, then it will settle down.
The vEmailForm is the body of an email that uses the other two variables. the vEmailForm doesn't change through out the entire flow, but the variables used in the vEmailForm change up to 6 different times.
<!--something-->
strEmailBody = vEmailForm.replace(/\{fname\}/g, strFirstName); strEmailBody = vEmailForm.replace(/\{day_of_week\}/g, strDayOfWeek);
vEmailForm = "Hello {fname}, I hope you are having a good {day_of_week}!";
Awesome! That is exactly what I was looking for. Thanks so much.
strEmailBody =vEmailForm; strEmailBody = strEmailBody.replace(/\{fname\}/g, strFirstName); strEmailBody = strEmailBody.replace(/\{day_of_week\}/g, strDayOfWeek);