Using a MRVS variable as a Switch option in a workflow not progressing

Julie Dixon
Tera Expert

Hi, hope I can have some help with this one as now scratching my head.

 

I need to use a variable in an MRVS I have in a catalog item, to direct the workflow to create a task for one of two teams, dependent upon the choice made.  

 

JulieDixon_0-1750238428287.png

 

Despite my best efforts the Switch finishes and doesn't progress.  I've checked the condition, and these all match with the variable (it added the conditions automatically from the variable when I added the switch).

JulieDixon_1-1750238569717.pngJulieDixon_2-1750238652427.png

 

Here are the results of the workflow action

JulieDixon_3-1750238803889.png

 

Any help is appreciated.  Thank you in advance, Julie 

 

 

6 REPLIES 6

palanikumar
Mega Sage

Hi,

MRVS can have more then one row. Are you iterating for each row? If you are doing it only for first record script then you can use script to get the MRVS variable and add condition

Thank you,
Palani

Thanks Palani, I'm not sure how to do that.  I will take a look and see.  

Ankur Bawiskar
Tera Patron
Tera Patron

@Julie Dixon 

why not use workflow run script? parse the MRVS and store the value in workflow.scratchpad variable

Then use IF activity and have different paths.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur, thank you.  I'm very limited in my script knowledge I'm afraid.  Could you provide me with a bit more detail? thanks in advance