Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to update an Incident in another Instance using flow designer custom REST Action?

Arshdeep Singh
Tera Contributor

So I have two Instances, a primary and a secondary Instance. When we create an Incident in Primary Instance it should be created in the secondary Instance but I have done this part using the flow designer REST Action.

The thing is I can't update the same record in Primary Instance If I make any changes to the record in Primary Instance.

I have this REST Action defined in my instance:

ArshdeepSingh_0-1674646885631.pngArshdeepSingh_1-1674647005083.pngArshdeepSingh_2-1674647037960.pngArshdeepSingh_3-1674647072269.png

 

I have not defined anything in the Output. When tested it returns Success but the Incident is not updated in the Primary Instance.

 

Any help would be appreciated.

2 REPLIES 2

Community Alums
Not applicable

Hello Arshdeep,

 

Add a step "Update record", after rest step, then select record from input and table name and then set field values.

 

Thank you!

 

ricker
Tera Guru

@Arshdeep Singh,

Why do you expect testing that action to update a record on the primary instance?  Furthermore, if you're triggering the action on the update of a record why would you want to also update that same record automatically?  It would never stop.