RiteshSwarnakar
Giga Guru

Scenario: Create an Incident on the target SN instance and fetch the created incident number and sys_id from target to source SN instance using POST HTTP method.

 

1] In the source SN instance on the Incident form: Configure -> Form Layout -> Add Correlation ID and Correlation display fields

 

2] Create REST Message: specify the Target instance Incident table URL and create an Auth profile.

find_real_file.png

 

3] Create a POST HTTP method: specify the Endpoint, configure the HTTP headers and HTTP Query Parameters as shown below. Then click on Auto-generate variables.

find_real_file.png

 

4] Create Business Rule: When to run is set as async and only Insert is selected. This BR will trigger an Event, which in turn will call a Script Action

find_real_file.png

 

 

5] Create an Event: go to System Policy -> Events -> Registry -> New

find_real_file.png

 

6] Create Script Action: We have created a Script Action as we cannot use current.update() in any Business Rule

find_real_file.png

 

 

Regards, 

Ritesh

Version history
Last update:
‎10-12-2021 11:16 AM
Updated by: