I need to be able to send various emails depending on which rate segment is selected on a form. The field is a check box that can be multi-selected. I am currently using switch and I know that switch can only use text or list ids. What would be the best and easiest approach to be able to send specific emails to each rate segment? Right now my workflow just skips entirely over the switch actions. Please see workflow screenshot attached.
Solved! Go to Solution.
dont know if that would be an option for u, but i would work with "for each element"
it looks a bit clumsy but it works. let me know if ur interested and i explain it in detail:
so first u have to lookup the value from ur multiple choice field and save it in a collection varible (CollTopic)
after that u have to split ur values in the collection variable (CollTopic) and save the new values in another collection variable (or in the same CollTopic like i do)
now the last step:
in the for each element u have to create two variables one text and one YES/NO variable and set it up like this:
in the first "if else" we check if the varSingleValueTopic is empty:
if the variable is empty it will go to the right and set the YES / NO variable to Yes (this will stop the loop "for each"):
now the part is a bit repetitive... u have to do this step for each of ur single values that are possible to choose (PGS, Azusa, Space Components, Astro, Launch Vehicles, LV-MDS):
my example is for PGS:
set up the "if else" like this:
check if the text variable (varSingleValueTopic) --- CONTAINS --- the value: PGS .... if its yes make an email notification on the "yes" path. if not then go to next "if else" and check if the text variable --- CONTAINS --- the value: Azusa.... and so on till all 6 are complete.
let me know if u have any questions.
Create another list (restricted for the edit to certain users) and read-only for others. This will have the following columns:
In your workflow:
This will reduce the current complexity in the workflow and if there are new choices or current choices are no longer needed then it's easily scalable.