Hi!
I've created a Custom Function that outputs a day of the week, like so:
dat2 = addDay(today,2);
Weekday = getDayOfWeek(dat2);
WeekdayReal = if(Weekday == 1,'Monday',if(Weekday == 2,'Monday',if(Weekday == 3,'Tuesday',if(Weekday == 4,'Wednesday',if(Weekday == 5,'Thursday',if(Weekday == 6,'Friday',if(Weekday == 7,'Monday','No day')))))));
return WeekdayReal;
As you can see, it returns a day of the week, and I want to have this day displayed in an email in the form of some search of merge field. However, I cannot seem to figure out how this can be done?
Any help would be highly appreciated.