Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to send and use SC Task payload in REST step within Flow Designer?

Sahil Mir
Tera Contributor

Hi everyone,

 

I have a requirement in Flow Designer where I need to create a Rest step and send SC Task data as a payload, and then I have to use that payload data in the next step of flow, but I’m not sure how to achieve that. 

 

I’m new to this and not sure how to properly configure the REST step and map the SC Task data.

 

Additionally, I’m unable to find the REST API action in my instance.

 

Can someone guide me on how to achieve this?

 

Thanks.

1 ACCEPTED SOLUTION

Hi @Sahil Mir ,

In your PDI, go to Manage My Instance, and from there you can install the IntegrationHub plugin.

 

Mark this as Helpful if it clarifies the issue.
Accept the solution if this answers your question.

Regards,
Vaishnavi
Technical Consultant

View solution in original post

5 REPLIES 5

Hi Sahil,

First thing I recommend using REST API Explorer and play with that, it will help you understand how rest works for ServiceNow 

mujeebqasimi_0-1775833313515.png

then these are the steps I did for your solution

INPUT

mujeebqasimi_1-1775833346531.png

REST step

mujeebqasimi_2-1775833394487.png




Output 

mujeebqasimi_3-1775833411289.png
For output, you have to create a variable and then from "Data Pill Picker" pick the response body.

You can use a script to extract right information from JSON as well.
By adding this step. 

mujeebqasimi_4-1775833554007.png


If this helped marked as helpful and accept the solution.