How to get Catalog task variable value in Flow designer.

snbansode
Tera Expert

Hey there,

 

I am creating a flow for one of the catalog item, the initial requirement is to Assign the task to particular team according to selection on the choice field on catalog task level.

 

If as a fulfiller I select on of the choice on catalog task level the catalog task should get assigned to that particular team.

 

Currently the flow designer is taking value from the catalog item level that is null(I hide that field on catalog item level), and the flow is not working as per my expectations.

 

Now I want to get the variable value from the catalog task level(whatever fulfiller selects) into the flow designer how do I get that?

 

currently i am using get catalog variable but it is taking the response value from item form level.

2 ACCEPTED SOLUTIONS

@snbansode 

Thank you for marking my response as helpful.

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

View solution in original post

snbansode
Tera Expert

@Ankur Bawiskar @Rohit99 @Shruti  ,

Thank you for your responses that was very helpful, however the solution you have provided not worked for me, I choose another way to capture the information from catalog task.

 

1. Deactivated the variable which was created to capture in the flow designer.

2. Created new field on catalog task added the choices.

3. The field can be only shown on that particular catalog item by using UI policy.

4. Then I tried to capture the field on flow designer and it worked.

 

View solution in original post

6 REPLIES 6

Shruti
Mega Sage
Mega Sage

Hi,

Try to use current.variables.<VARIABLE_NAME> in the flow action script to get the latest value

Rohit99
Mega Sage

Hi @snbansode ,
Please have a look on below screenshots
My flow is like once request is generated then First task is generated.
Fulfiller of that task is selects a group on catalog variables. further,
Second task is created and assigned to the group which is selected by fulfiller of first task.

Rohit99_0-1736503623753.png

 

Rohit99_1-1736503753811.png

 

Rohit99_3-1736503846749.png

 

Rohit99_4-1736503884369.png

 

Please mark my response as correct and helpful if it helped solved your question.

 

Thanks,

Rohit Suryawanshi

Ankur Bawiskar
Tera Patron
Tera Patron

@snbansode 

OOB Get Catalog variable action will always give outdated value and not the latest one.

to ensure it picks the latest value here is the workaround

The "Get Catalog Variables" Flow Action will return Outdated Variables 

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

@snbansode 

Thank you for marking my response as helpful.

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