The CreatorCon Call for Content is officially open! Get started here.

flow action "get Catalog variable" is static or dynamic in mid of flow ?

Vamsi Saladi
Tera Contributor

Hi Developers,
lets say in a flow for catalog
step 1 - i have used get catalog varaibles. it fetched like group = A

step 2 - i used update record to move ritm to wip

step 3 - i had existing BR to update group variable on ritm to B

step 4 - i use the approval action - so i use group of step 1 in data pill picker.

so will it be static value as A (value retrieved in step 1) or will dynamically retrieve new value and use B ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Vamsi Saladi 

it will give Group A.

The "Get Catalog Variable" flow action picks value whatever will be there at that point of time and not the real-time value.

check this KB which explains this OOTB behavior, it also explains 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

View solution in original post

4 REPLIES 4

J Siva
Kilo Patron
Kilo Patron

Hi @Vamsi Saladi 

It'll pick the group value from the step 1. i.e, Group A

If you used one more Get Catalog Variable action after 3rd step, then you will get the latest value i.e., Group B

Regards,

Siva

Ankur Bawiskar
Tera Patron
Tera Patron

@Vamsi Saladi 

it will give Group A.

The "Get Catalog Variable" flow action picks value whatever will be there at that point of time and not the real-time value.

check this KB which explains this OOTB behavior, it also explains 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

so thank you for response, so instead of calling "get catalog variables" multiple times, can i use any BR or server side to update flow variables in flow ? is it possible ?

Muhammad Salar
Giga Sage

Hello @Vamsi Saladi , It will retrieve group A from 1st step.
If your same variable is then updated by BR, then you can use Get Catalog Variable again after 3rd step and retrieving variable value from this Get Catalog Variable will give you updated group