The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Based on the field selection in Ritm catalog tasks should be created

Vasavi O
Tera Contributor

Hi All,

Requirement :

I have a variable which is only visible on RITM and hidden on catalog form , so that  variable field on RITM will have 2 options which are yes and NO so based on which 2 tasks should be configured in flow , during the second level approval once approver approved and select the any one choice and saved the form  then based on the selection tasks should be created.

1) if Yes is selected then TASK A and Task B should be created.

2) else No is selected the Only TASK A should be created.

I have created the flow in flow designer but somehow the conditions are evaluated falsea and tasks are not generated ,  How can this be achieved.{ Attaching the images for reference}

 

Thanks in advance,

Vasavi

5 REPLIES 5

Viraj Hudlikar
Tera Sage

@Vasavi O 

 

Tried with your req and it worked for me.
When you are validating the value in If statement what is runtime value is it yes or no or blank? I feel the catch is use Get Catalog Variables action after approval is asked, so it will get the latest value selected on RITM. Below is usecase I tried in my PDI.

Variable with type as Yes/No

VirajHudlikar_0-1755072048950.png

 

Flow for my Catalog Item.

VirajHudlikar_2-1755072113169.png

 

 

RITM with Variable selected as YES and its flow context

VirajHudlikar_6-1755072527564.png

VirajHudlikar_3-1755072284420.png

 

RITM with variable selected as NO and its flow context.

VirajHudlikar_5-1755072461665.png

VirajHudlikar_4-1755072434839.png

Tip: When you are confused why its not working try to check flow context see what is runtime value and then you will get most of concern or query answered and you will learn quick.

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Hello @Viraj Hudlikar @Ankur Bawiskar , I have updated the get variables action before the if condition but not sure it is not working as expected , when I check the flow context those conditions are evaluated false, Could you Please guide me on that .[Attached the screenshots] Thank you.

@Vasavi O 

if you see here in below highlighted image you are not able to get the variable value and hence comparison didn't work.

OR
that variable is still with None and hence an empty String and gave false when using IF

is that variable part of MRVS or standalone?

AnkurBawiskar_1-1755079300422.png

 

 

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

@Vasavi O 

Over ritm is value set for that variable?? As in flow context and as highlighted by Ankur value is not present so I doubt it's not set and saved... Do try to save value and then proceed with approval and check results

 If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards

Viraj Hudlikar.