subflow - how to use reference field?

Hafila Hatta
Tera Guru

hi. i want to pass Assignment Group into a subflow to be used in Create Catalog Task action. so i have declared input below as reference. 

 

then i used that input to set the Assignment Group for the catalog task. however once i tested it, the assignment group is empty. any idea why? in the execution, seems like the value is there

HafilaHatta_0-1735292847090.png

HafilaHatta_1-1735292895105.png

HafilaHatta_2-1735292967549.png

HafilaHatta_3-1735293018023.png

 

 

1 ACCEPTED SOLUTION

hi. i didnt do exactly as per your suggestion as it didnt work. but it gave me an idea. 

i added a lookup record action in the flow to lookup the subflow input = assignment group in table. 

and reuse the value in the catalog task. 

 

thanks for your help

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Hafila Hatta 

where's the code to set the short description

please share that

The input is passed correctly to subflow

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! unfortunately short description is sensitive information, there's no issue with this field. only issue with the assignment group 

@Hafila Hatta 

did you check the subflow context the input was passed correctly?

Seems the input type in your subflow is GlideRecord reference and you are passing sysId to that subflow

Do this

1) change the input type to string and pass the sysId

2) then set this in catalog task Assignment group field

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

@Hafila Hatta 

Hope you are doing good.

Did my reply answer your question?

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