Best approach to get a message through integration spoke?

Alan42
Tera Guru

I'm using SN to push a message through to our ERP system using an integration spoke and mid server.  The message is synchronous, so when we send the XML, we should get an immediate response to the message in XML.  What's the best way to set the system up to receive that response?  The end goal is to updates and resolve the incident when the response is received.   I'm using an action with a REST step to send the payload to our ERP and am thinking another REST step should be used to get the response date.   The ECC queue shows my message and the ERP response but the response payload doesn't match what our ERP sent, which I guess is expected since it doesn't show my output from SN in the earlier step.    

1 ACCEPTED SOLUTION

Alan42
Tera Guru

The output step in the action let me get the response.    

Alan42_0-1738872786896.pngAlan42_1-1738872810757.png

 

Alan42_0-1738873033860.png

 

 

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Alan42 

why not use another custom action to parse the API response just after the REST Step since you will be getting the response immediately?

OR

you can somehow parse the output json and use inline f(x) script to set field values

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

Alan42
Tera Guru

The output step in the action let me get the response.    

Alan42_0-1738872786896.pngAlan42_1-1738872810757.png

 

Alan42_0-1738873033860.png