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

How to get information from catalog task created in a flow

gunishi
Tera Guru

Hi all, 

 

I have a flow in flow designer where I have created a catalog task wiht the short description 'Dell laptop has been ordered'.

 

I want to access information about this specific record in the flow; specifiying that when this catalog task is closed, the Requested record for the catalof item will be closed. 

 

How do I access information about a catalog task that I have created in the flow?

 

So far I have used this data pill but to no avail: create catalog task>catalog task>state

 

How can I access this information? Any help would be appreciated. 

 

Kind regards, 

G

1 ACCEPTED SOLUTION

Adrian Ubeda
Mega Sage

Hello gunishi, 

Once you create the task in the flow, you can access all variables inside that references as you usually do with other pills, in this case I've created a task and then I use that variable for being the input of the next scripted custom action, for example I take the state of the task and use it as input for validating with request inside scripted action.

AdrianUbeda_0-1695032179249.png

 

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆

View solution in original post

3 REPLIES 3

Adrian Ubeda
Mega Sage

Hello gunishi, 

Once you create the task in the flow, you can access all variables inside that references as you usually do with other pills, in this case I've created a task and then I use that variable for being the input of the next scripted custom action, for example I take the state of the task and use it as input for validating with request inside scripted action.

AdrianUbeda_0-1695032179249.png

 

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆

Ankur Bawiskar
Tera Patron
Tera Patron

@gunishi 

you can use Lookup record on sc_task with the RITM reference and then check the state value

Then use IF action to check state and then use Update Record action to close RITM

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

@gunishi 

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