---
sourceDocument: Brazil Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/integrate-applications

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Build your first Remote Process Sync integration

# Build your first Remote Process Sync integration {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 19 minutes to read  
Step through an example of how to build a Remote Process Sync integration in order to
link the automated processes of two ServiceNow® instances
together.

## Before you begin

* Activate Remote Process Sync on each instance in your integration by purchasing the Integration Hub Enterprise package. For more information, see [Request Integration Hub](https://www.servicenow.com/docs/1cjQKW5ssBIKAcJMt12j6w "ServiceNow Integration Hub enables you to build reusable integrations with third-party systems and call them from anywhere in the ServiceNow AI Platform. For example, you can call external systems using integration APIs from the Action Designer Script step or run the Script step on the ServiceNow MID Server. You can also activate protocol steps such as REST, SOAP, and PowerShell.").
* Activate the explicit roles security feature on each instance in your integration. For more information, see Explicit Role plugin.
* Learn about how to build and manage an Integration Hub Remote Process Sync integration by checking out [Getting started with Remote Process Sync](https://www.servicenow.com/docs/RjjwffVpMy~PIQIP21gOlg "Learn the basics of setting up a Remote Process Sync integration in order to link the automated processes among two or more ServiceNow instances together.").
* Confirm the instances that you will link together in the following example are not production instances. It is recommended to test this example on sub-production instances only in order to avoid overwriting any important data on either instance. You might also want to use a [Personal Developer Instance](https://developer.servicenow.com/dev.do#!/guides/sandiego/now-platform/pdi-guide/personal-developer-instance-guide-introduction) for testing this example integration.
* Confirm that you do not have any existing business rules, workflows, or Workflow Studio flows whose logic will conflict with the flows we will create in the following example.
* Role required: admin
{#build-first-remote-process-sync-integration__ul_agm_1cr_pnb}

## About this task

In the following example, you will step through how to link two ServiceNow instances' automated processes together. The use
case for this example is that a customer creates requests for hardware that are
fulfilled by a vendor. We will refer to the customer's instance as Instance A, and
the vendor's instance as Instance B. We will start by setting up credentials in each
instance that can access the remote instance. We will also create a user in each
instance that can run the outbound and inbound flows.

## Procedure

1. In Instance A, ensure that your domain is set to global, and then navigate to System SecurityUsers and GroupsUsers.
2. Select New to open a new User form view, and then fill in the following fields:  
   {#build-first-remote-process-sync-integration__table_ozl_nzl_qnb__entry__2}

   | Field | Description |
   |-|-|
   | User ID | Enter <kbd class="ph userinput">rps.api.instance.a</kbd> |
   | First name | Enter <kbd class="ph userinput">RPS API User for Instance A</kbd> |
   [ ]

   {#build-first-remote-process-sync-integration__table_ozl_nzl_qnb}Select Save.
3. While still on the User form, select Set Password to set a password.  
   For details, see steps four and five in [Configure password for a user](https://www.servicenow.com/docs/access?context=reset-your-password&version=brazil&pubname=brazil-platform-security&ft:locale=en-US).
4. [Reset the password](https://www.servicenow.com/docs/access?context=c_EnrollInPasswordReset&version=brazil&pubname=brazil-servicenow-platform&ft:locale=en-US) for RPS API User for Instance A.
5. Navigate back to System SecurityUsers and GroupsUsers and select the User record that you just created.
   1. Navigate to and select the Roles related list.
   2. Select Edit... to configure the user's roles.
   3. In the search window above Collection, enter <kbd class="ph userinput">ih_process_sync_api</kbd>.
   4. Select ih_process_sync_api and snc_external from the Collection list, and then select the add button (![Add button]()) to add these roles to the Roles List.  
      Note:  
      The snc_external role restricts the access of external users to only the resources they have been explicitly granted access to.
   5. Select Save.
   {#build-first-remote-process-sync-integration__substeps_vjl_cbm_qnb}
6. Select New to open a new User form view, and then fill in the following fields:  
   {#build-first-remote-process-sync-integration__table_txv_cqc_snb__entry__2}

   | Field | Description |
   |-|-|
   | User ID | Enter <kbd class="ph userinput">rps.run.as</kbd> |
   | First name | Enter <kbd class="ph userinput">RPS Run as User A</kbd> |
   [ ]

   {#build-first-remote-process-sync-integration__table_txv_cqc_snb}Select Save.
7. While still on the User form, select Set Password to set a password.  
   For details, see steps four and five in [Configure password for a user](https://www.servicenow.com/docs/access?context=reset-your-password&version=brazil&pubname=brazil-platform-security&ft:locale=en-US).
8. [Reset the password](https://www.servicenow.com/docs/access?context=c_EnrollInPasswordReset&version=brazil&pubname=brazil-servicenow-platform&ft:locale=en-US) for RPS Run as User A.
9. Navigate back to System SecurityUsers and GroupsUsers and select the User record that you just created.
   1. Navigate to and select the Roles related list.
   2. Select Edit... to configure the user's roles.
   3. In the search window above Collection, enter <kbd class="ph userinput">ih_process_sync_run_as</kbd>.
   4. Select ih_process_sync_run_as from the Collection list, and then select the add button (![Add button]()) to add that role to the Roles List.
   5. In the search window above Collection, enter <kbd class="ph userinput">incident_manager</kbd>.
   6. Select incident_manager from the Collection list, and then select the add button (![Add button]()) to add that role to the Roles List.
   7. Select Save.
   {#build-first-remote-process-sync-integration__substeps_gfv_fqc_snb}
10. In Instance B, ensure that your domain is set to global, and then navigate to System SecurityUsers and GroupsUsers.
11. Select New to open a new User form view, and then fill in the following fields:  
    {#build-first-remote-process-sync-integration__table_pvb_xbm_qnb__entry__2}

    | Field | Description |
    |-|-|
    | User ID | Enter <kbd class="ph userinput">rps.api.instance.b</kbd> |
    | First name | Enter <kbd class="ph userinput">RPS API User for Instance B</kbd> |
    [ ]

    {#build-first-remote-process-sync-integration__table_pvb_xbm_qnb}Select Save.
12. While still on the User form, select Set Password to set a password.  
    For details, see steps four and five in [Configure password for a user](https://www.servicenow.com/docs/access?context=reset-your-password&version=brazil&pubname=brazil-platform-security&ft:locale=en-US).
13. [Reset the password](https://www.servicenow.com/docs/access?context=c_EnrollInPasswordReset&version=brazil&pubname=brazil-servicenow-platform&ft:locale=en-US) for RPS API User for Instance B.
14. Navigate back to System SecurityUsers and GroupsUsers and select the User record that you just created.
    1. Navigate to and select the Roles related list.
    2. Select Edit... to configure the user's roles.
    3. In the search window above Collection, enter <kbd class="ph userinput">ih_process_sync_api</kbd>.
    4. Select ih_process_sync_api and snc_external from the Collection list, and then select the add button (![Add button]()) to add these roles to the Roles List.  
       Note:  
       The snc_external role restricts the access of external users to only the resources they have been explicitly granted access to.
    5. Select Save.
    {#build-first-remote-process-sync-integration__substeps_gqz_xbm_qnb}
15. Select New to open a new User form view, and then fill in the following fields:  
    {#build-first-remote-process-sync-integration__table_apf_kqc_snb__entry__2}

    | Field | Description |
    |-|-|
    | User ID | Enter <kbd class="ph userinput">rps.run.as</kbd> |
    | First name | Enter <kbd class="ph userinput">RPS Run as User B</kbd> |
    [ ]

    {#build-first-remote-process-sync-integration__table_apf_kqc_snb}Select Save.
16. While still on the User form, select Set Password to set a password.  
    For details, see steps four and five in [Configure password for a user](https://www.servicenow.com/docs/access?context=reset-your-password&version=brazil&pubname=brazil-platform-security&ft:locale=en-US).
17. [Reset the password](https://www.servicenow.com/docs/access?context=c_EnrollInPasswordReset&version=brazil&pubname=brazil-servicenow-platform&ft:locale=en-US) for RPS Run as User B from Instance B.
18. Navigate back to System SecurityUsers and GroupsUsers and select the User record that you just created.
    1. Navigate to and select the Roles related list.
    2. Select Edit... to configure the user's roles.
    3. In the search window above Collection, enter <kbd class="ph userinput">ih_process_sync_run_as</kbd>.
    4. Select ih_process_sync_run_as from the Collection list, and then select the add button (![Add button]()) to add that role to the Roles List.
    5. In the search window above Collection, enter <kbd class="ph userinput">incident_manager</kbd>.
    6. Select incident_manager from the Collection list, and then select the add button (![Add button]()) to add that role to the Roles List.
    7. Select Save.
    {#build-first-remote-process-sync-integration__substeps_kst_lqc_snb}
19. In Instance A, navigate to IntegrationHubConnections \& CredentialsCredentials, and then select New.
    1. From the list of connection options, select Basic Auth Credentials.
    2. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_zw4_qdm_qnb__entry__2}

       | Field | Description |
       |-|-|
       | Name | Enter <kbd class="ph userinput">RPS Vendor Credentials</kbd> |
       | User name | Enter <kbd class="ph userinput">rps.api.instance.b</kbd> |
       | Password | Enter the password for RPS API User for Instance B. |
       [ ]

       {#build-first-remote-process-sync-integration__table_zw4_qdm_qnb}  
       Note:  
       The credentials you enter must match the credentials for the RPS API User that you created in Instance B.
    3. Select Submit.
    {#build-first-remote-process-sync-integration__substeps_i5c_bgm_qnb}
20. While still in Instance A, navigate to IntegrationHubConnections \& CredentialsConnection \& Credential Aliases, and then select New.
    1. In the Name field, enter <kbd class="ph userinput">RPS Vendor Demo</kbd>.  
       Leave all other fields as they are, and then select Submit.
    2. From the list, select the RPS Vendor Demo record that you just created.
    3. In the Connections related list, select New.
    4. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_wwc_y1v_rnb__entry__2}

       | Field | Description |
       |-|-|
       | Name | Enter <kbd class="ph userinput">RPS Vendor</kbd>. |
       | Credential | Select the lookup using list icon (![Lookup using list icon]()), and then select the RPS Vendor Credentials record from the list. |
       | Connection URL | Enter the base URL of Instance B. The URL should begin with https:// and end with .service-now.com/ |
       [ ]

       {#build-first-remote-process-sync-integration__table_wwc_y1v_rnb}
    5. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_eg3_g1v_rnb}
21. In Instance B, navigate to IntegrationHubConnections \& CredentialsCredentials, and then select New.
    1. From the list of connection options, select Basic Auth Credentials.
    2. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_bcd_rln_rnb__entry__2}

       | Field | Description |
       |-|-|
       | Name | Enter <kbd class="ph userinput">RPS Customer Credentials</kbd> |
       | User name | Enter <kbd class="ph userinput">rps.api.instance.a</kbd> |
       | Password | Enter the password for RPS API User for Instance A. |
       [ ]

       {#build-first-remote-process-sync-integration__table_bcd_rln_rnb}  
       Note:  
       The credentials you enter must match the credentials for the RPS API User that you created in Instance A.
    3. Select Submit.
    {#build-first-remote-process-sync-integration__substeps_acd_rln_rnb}
22. While still in Instance B, navigate to IntegrationHubConnections \& CredentialsConnection \& Credential Aliases, and then select New.
    1. In the Name field, enter <kbd class="ph userinput">RPS Customer Demo</kbd>.  
       Leave all other fields as they are, and then select Submit.
    2. From the list, select the RPS Customer Demo record that you just created.
    3. In the Connections related list, select New.
    4. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_xjf_ybv_rnb__entry__2}

       | Field | Description |
       |-|-|
       | Name | Enter <kbd class="ph userinput">RPS Customer</kbd>. |
       | Credential | Select the lookup using list icon (![Lookup using list icon]()), and then select the RPS Customer Credentials record from the list. |
       | Connection URL | Enter the base URL of Instance A. The URL should begin with https:// and end with .service-now.com/ |
       [ ]

       {#build-first-remote-process-sync-integration__table_xjf_ybv_rnb}
    5. Leave all other fields as they are, and then select Submit.

    {#build-first-remote-process-sync-integration__substeps_wjf_ybv_rnb}  
    We've successfully created credentials that can be used to access each remote instance. Now, let's ensure that we can send and receive data between instances by configuring the Remote System record for a Process Sync Definition in each instance.
23. In Instance A, navigate to IntegrationHubRemote Process SyncProcess Sync Definitions, and then select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_ps5_ddv_rnb__entry__2}

       | Field | Description |
       |-|-|
       | Name | Enter <kbd class="ph userinput">Hardware Request Process</kbd> |
       | Description | Enter <kbd class="ph userinput">Process for requesting hardware and handling fulfilled hardware requests</kbd> |
       [ ]

       {#build-first-remote-process-sync-integration__table_ps5_ddv_rnb}
    2. Leave all other fields as they are, and then select Submit.
    3. From the list, select the Hardware Request Process record that you just created.
    {#build-first-remote-process-sync-integration__substeps_zdt_1dv_rnb}
24. In the Remote Systems related list, select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_lyb_jrv_rnb__entry__2}

       | Field | Description |
       |-|-|
       | Name | Enter <kbd class="ph userinput">Vendor Instance - Instance B</kbd> |
       | Description | Enter <kbd class="ph userinput">Vendor instance that fulfills hardware requests</kbd> |
       | Connection Alias | Select the lookup using list icon (![Lookup using list icon]()), and then select the RPS_Vendor_Demo record from the list. |
       | Inbound API User | Select the lookup using list icon (![Lookup using list icon]()), and then select the RPS API User for Instance A record from the list. |
       | Run as | Select the lookup using list icon (![Lookup using list icon]()), and then select the RPS Run as User record from the list. |
       [ ]

       {#build-first-remote-process-sync-integration__table_lyb_jrv_rnb}
    2. In the context header, select the additional actions icon (![Additional actions icon]()) and then select Copy sys_id.  
       You will need this Sys ID as the value for the External ID field of the Remote System record in Instance B.
    3. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_kyb_jrv_rnb}
25. In Instance B, navigate to IntegrationHubRemote Process SyncProcess Sync Definitions, and then select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_cgx_4jw_rnb__entry__2}

       | Field | Description |
       |-|-|
       | Name | Enter <kbd class="ph userinput">Hardware Fulfillment Process</kbd> |
       | Description | Enter <kbd class="ph userinput">Process for fulfilling hardware requests</kbd> |
       [ ]

       {#build-first-remote-process-sync-integration__table_cgx_4jw_rnb}
    2. Leave all other fields as they are, and then select Submit.
    3. From the list, select the Hardware Fulfillment Process record that you just created.
    {#build-first-remote-process-sync-integration__substeps_bgx_4jw_rnb}
26. In the Remote Systems related list, select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_ogl_zjw_rnb__entry__2}

       | Field | Description |
       |-|-|
       | Name | Enter <kbd class="ph userinput">Customer Instance - Instance A</kbd> |
       | Description | Enter <kbd class="ph userinput">Customer instance that requests hardware</kbd> |
       | External ID | Paste the value of the Sys ID that you copied from the Remote System record in Instance A. |
       | Connection Alias | Select the lookup using list icon (![Lookup using list icon]()), and then select the RPS_Customer_Demo record from the list. |
       | Inbound API User | Select the lookup using list icon (![Lookup using list icon]()), and then select the RPS API User for Instance B record from the list. |
       | Run as | Select the lookup using list icon (![Lookup using list icon]()), and then select the RPS Run as User record from the list. |
       [ ]

       {#build-first-remote-process-sync-integration__table_ogl_zjw_rnb}
    2. Leave all other fields as they are, and then select Submit.
    3. From the Remote Systems related list, select the Customer Instance - Instance A record.
    4. In the context header, select the additional actions icon (![Additional actions icon]()) and then select Copy sys_id.  
       You will need this Sys ID as the value for the External ID field of the Remote System record in Instance A.
    {#build-first-remote-process-sync-integration__substeps_ngl_zjw_rnb}
27. In Instance B, navigate to IntegrationHubRemote Process SyncRemote Systems - All, and then select the Customer Instance - Instance A record from the list.
    1. In the External ID field, paste the value of the Sys ID that you copied from the Remote System record in Instance A.
    2. Select Update to save your changes to the record.
    3. From the list, select the Customer Instance - Instance A record.
    4. In the Related links section, select Validate and Activate Remote System.  
       You should see a message that displays Remote system validated and activated successfully. If you see an error message instead, go back and check the configuration for the Remote System record.

    {#build-first-remote-process-sync-integration__substeps_wh1_hlw_rnb}  
    We have successfully connected Instance A and Instance B together so that they can share data across their process workflows. Now, we will define how our integration will trigger and run automatically, as well as which fields we want to capture and sync between instances.
28. In Instance A, navigate to IntegrationHubRemote Process SyncProcess Sync Definitions, and then select the Hardware Request Process record from the list.
29. In the Process Events related list, select New.
    1. In the Name field, enter <kbd class="ph userinput">Request Hardware</kbd>.  
       Note:  
       This field is case-sensitive. It functions similarly to an API endpoint method name.
    2. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_r1r_spv_rnb}
30. In the Process Events related list, select New.
    1. In the Name field, enter <kbd class="ph userinput">Hardware Request Fulfilled</kbd>.
    2. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_t4n_1wd_snb}
31. In the Capture Definitions related list, select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_phs_5qv_rnb__entry__2}

       | Field | Description |
       |-|-|
       | Process Event | select the lookup using list icon (![Lookup using list icon]()), and then select the Request Hardware record from the list. |
       | State | Select Active |
       | Source Table Name | Select Incident \[incident\] |
       | Filter | In the condition builder, select Assignment Groupis and then select the lookup using list icon (![Lookup using list icon]()). Choose the Hardware record from the list. |
       | Include fields | Select the following fields and then select the add item button (![Add item button]()) to add them to the Selected list: * Number * Short description * Assignment group * Severity * State {#build-first-remote-process-sync-integration__ul_l4c_2yd_snb} Note: Sys ID is already included in the Selected list. Leave this field in the Selected list as well. |
       [ ]

       {#build-first-remote-process-sync-integration__table_phs_5qv_rnb}
    2. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_o3j_tqv_rnb}
32. In the Outbound Flows related list, select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_ezn_htc_snb__entry__2}

       | Field | Description |
       |-|-|
       | Process Event | From the list, select Request Hardware. |
       | Outbound Subflow | Select Copy of Remote Process Sync Outbound Flow Template - Basic record. To make a copy, follow these steps. 1. Use the Configure Subflow button next to the Outbound Subflow field to navigate to Workflow Studio. 2. In Workflow Studio, select the Subflows tab. 3. Filter the Name column to locate the Remote Process Sync Outbound Flow Template - Basic record and select it. 4. In the subflow, select the More Actions menu, then select Copy subflow. 5. Publish the subflow copy. {#build-first-remote-process-sync-integration__ol_xwv_cqn_wbc} This template subflow handles the correlation of local and remote records and sends the captured payload to the remote instance. Note: When building your own integration, you can add [Remote Process Sync actions](https://www.servicenow.com/docs/1lAC38ytIs41DxXA7sPHCg "Learn how to use actions in outbound and inbound flows for your Integration Hub Remote Process Sync integration.") to personalize this template subflow to your needs. To edit this template subflow in Workflow Studio, select the Configure Subflow icon (![Configure Subflow icon]()). |
       | Remote System | Select the lookup using list icon (![Lookup using list icon]()), and then select the Vendor Instance - Instance B record from the list. |
       [ ]

       {#build-first-remote-process-sync-integration__table_ezn_htc_snb}
    2. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_dzn_htc_snb}
33. In Instance B, navigate to IntegrationHubRemote Process SyncProcess Sync Definitions, and then select the Hardware Fulfillment Process record from the list.
34. In the Process Events related list, select New.
    1. In the Name field, enter <kbd class="ph userinput">Request Hardware</kbd>.
    2. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_mf4_kxd_snb}
35. In the Process Events related list, select New.
    1. In the Name field, enter <kbd class="ph userinput">Hardware Request Fulfilled</kbd>.
    2. Leave all other fields as they are, and then select Submit.  
       Note:  
       Create Process Event records in both instances with names that match. This will help you keep track of the linked process workflows between instances.
    {#build-first-remote-process-sync-integration__substeps_h11_lxd_snb}
36. In the Capture Definitions related list, select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_sqp_4xd_snb__entry__2}

       | Field | Description |
       |-|-|
       | Process Event | select the lookup using list icon (![Lookup using list icon]()), and then select the Hardware Request Fulfilled record from the list. |
       | State | Select Active |
       | Source Table Name | Select Incident \[incident\] |
       | Filter | In the condition builder, select Assignment Groupis and then select the lookup using list icon (![Lookup using list icon]()). Choose the Hardware record from the list. Then, select AND to add another condition and select Incident stateisResolved. |
       | Include fields | Select the following fields and then select the add item button (![Add item button]()) to add them to the Selected list: * Number * State * Resolved by * Resolution notes * Resolution code {#build-first-remote-process-sync-integration__ul_bgt_yrv_rnb} Note: Sys ID is already included in the Selected list. Leave this field in the Selected list as well. |
       [ ]

       {#build-first-remote-process-sync-integration__table_sqp_4xd_snb}
    2. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_rqp_4xd_snb}
37. In the Outbound Flows related list, select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_sc4_pyd_snb__entry__2}

       | Field | Description |
       |-|-|
       | Process Event | From the list, select Hardware Request Fulfilled. |
       | Outbound Subflow | Select Copy of Remote Process Sync Outbound Flow Template - Basic record. To make a copy, follow these steps. 1. Use the Configure Subflow button next to the Outbound Subflow field to navigate to Workflow Studio. 2. In Workflow Studio, select the Subflows tab. 3. Filter the Name column to locate the Remote Process Sync Outbound Flow Template - Basic record and select it. 4. In the subflow, select the More Actions menu, then select Copy subflow. 5. Publish the subflow copy. {#build-first-remote-process-sync-integration__ol_e5j_2ds_wbc} This template subflow handles the correlation of local and remote records and sends the captured payload to the remote instance. Note: When building your own integration, you can add [Remote Process Sync actions](https://www.servicenow.com/docs/1lAC38ytIs41DxXA7sPHCg "Learn how to use actions in outbound and inbound flows for your Integration Hub Remote Process Sync integration.") to personalize this template subflow to your needs. To edit this template subflow in Workflow Studio, select the Configure Subflow icon (![Configure Subflow icon]()). |
       | Remote System | Select the lookup using list icon (![Lookup using list icon]()), and then select the Customer Instance - Instance A record from the list. |
       [ ]

       {#build-first-remote-process-sync-integration__table_sc4_pyd_snb}
    2. Leave all other fields as they are, and then select Submit.

    {#build-first-remote-process-sync-integration__substeps_rc4_pyd_snb}  
    We have successfully set up how our Remote Process Sync integration will trigger, and which fields will be captured and sent to either remote instance. In this final section, we will customize the inbound flows in Workflow Studio so that they properly transform inbound data.
38. In Instance B, navigate to IntegrationHubRemote Process SyncProcess Sync Definitions, and then select the Hardware Fulfillment Process record from the list.
39. Make a copy of the Remote Process Sync Inbound Flow Template - Basic record.
    1. Navigate to Workflow Studio and select the Subflows tab.
    2. Filter the Name column to locate the Remote Process Sync Inbound Flow Template - Basic record and select it.
    3. In the subflow, select the More Actions menu, then select Copy subflow.
    {#build-first-remote-process-sync-integration__substeps_zzv_t2s_wbc}
40. In the subflow, update the Payload.
    1. Expand the Transform Payload from Inbound Sample action.
    2. In the Sample Payload field, enter the following sample payload:  

           {"capture_metadata":{"changed_by":"admin","timestamp":"2020-09-24 19:26:59"},
           "changed_fields":[
             {"display_value":"","value":"incident","key":"sys_class_name"},
             {"display_value":"","value":"552c48888c033300964f4932b03eb092","key":"sys_id"},
             {"display_value":"","value":"INC0040015","key":"number"},
             {"display_value":"","value":"","key":"short_description"},
             {"display_value":"Hardware","value":"9f5b572d9cd82010f877a5cfd1fdce30","key":"assignment_group"},
             {"display_value":"","value":"1","key":"severity"},
             {"display_value":"","value":"2","key":"state"}]}

       Note:  
       This payload is a complex object that represents the captured metadata and fields that are sent from Instance A to Instance B.
    3. Select Done.
    {#build-first-remote-process-sync-integration__substeps_dzl_5gs_wbc}
41. In the subflow, under the Else flow logic, select Create Incident Record.
    1. Add the following fields and associated values:  
       {#build-first-remote-process-sync-integration__table_y2g_sjs_wbc__entry__2}

       | Field | Value |
       |-|-|
       | Short description | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsshort_description. |
       | Description | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsshort_description. |
       | Assignment group | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsassignment_group. |
       | Urgency | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsseverity. |
       | State | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsstate. |
       [ ]

       {#build-first-remote-process-sync-integration__table_y2g_sjs_wbc}
    2. Select Done.
    {#build-first-remote-process-sync-integration__substeps_x2g_sjs_wbc}
42. Under the If flow logic next to then, select Update Incident Record.
    1. In the Fields input, add the following fields and associated values:  
       {#build-first-remote-process-sync-integration__table_ogq_4pt_wbc__entry__2}

       | Field | Value |
       |-|-|
       | Short description | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsshort_description. |
       | Description | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsshort_description. |
       | Assignment group | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsassignment_group. |
       | Urgency | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsseverity. |
       | State | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsstate. |
       [ ]

       {#build-first-remote-process-sync-integration__table_ogq_4pt_wbc}
    2. Select Done.
    {#build-first-remote-process-sync-integration__substeps_mgq_4pt_wbc}
43. Publish the subflow.
44. Back in the Hardware Fulfillment Process record, in the Inbound Flows related list, select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_slr_nl2_snb__entry__2}

       | Field | Description |
       |-|-|
       | Process Event | From the list, select Request Hardware. |
       | Inbound Subflow | Select Copy of Remote Process Sync Inbound Flow Template - Basic. |
       | Remote System | Select the lookup using list icon (![Lookup using list icon]()), and then select the Customer Instance - Instance A record from the list. |
       [ ]

       {#build-first-remote-process-sync-integration__table_slr_nl2_snb}
    2. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_rlr_nl2_snb}
45. In Instance A, navigate to IntegrationHubRemote Process SyncProcess Sync Definitions, and then select the Hardware Request Process record from the list.
46. Make a copy of the Remote Process Sync Inbound Flow Template - Basic record.
    1. Navigate to Workflow Studio and select the Subflows tab.
    2. Filter the Name column to locate the Remote Process Sync Inbound Flow Template - Basic record and select it.
    3. In the subflow, select the More Actions menu, then select Copy subflow.
    {#build-first-remote-process-sync-integration__substeps_v5j_5qt_wbc}
47. In the subflow, update the Payload.
    1. Expand the Transform Payload from Inbound Sample action.
    2. In the Sample Payload field, enter the following sample payload:  

           {"capture_metadata":{"changed_by":"admin","timestamp":"2020-10-26 14:18:45"},
           "changed_fields":[
             {"display_value":"","value":"incident","key":"sys_class_name"},
             {"display_value":"","value":"d4cdfce8db4c2410cfe4d9595e96197b","key":"sys_id"},
             {"display_value":"","value":"INC0040014","key":"number"},
             {"display_value":"","value":"101","key":"state"},
             {"display_value":"","value":"Resolved by caller","key":"close_code"},
             {"display_value":"System Administrator","value":"6816f79cc0a8016401c5a33be04be441","key":"resolved_by"},
             {"display_value":"","value":"","key":"close_notes"}]}

       Note:  
       This payload is a complex object that represents the captured metadata and fields that are sent from Instance B to Instance A.
    3. Select Done.
    {#build-first-remote-process-sync-integration__substeps_llr_brt_wbc}
48. Under the If flow logic next to then, select Update Incident Record.
    1. In the Fields input, add the following fields and associated values:  
       {#build-first-remote-process-sync-integration__table_vzj_hgk_snb__entry__2}

       | Field | Value |
       |-|-|
       | State | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsstate. |
       | Resolved by | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsresolved_by. |
       | Resolution notes | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsclose_notes. |
       | Resolution code | Select the data pill picker icon (![Data pill picker icon]()). Dot-walk to and then select 1 - Transform Payload from Inbound SampleChanged Fieldsclose_code. |
       [ ]

       {#build-first-remote-process-sync-integration__table_vzj_hgk_snb}
    2. Select Done.
    {#build-first-remote-process-sync-integration__substeps_tzj_hgk_snb}
49. In the subflow, delete the Else statement.
50. Publish the subflow.
51. Back in the Hardware Fulfillment Process record, in the Inbound Flows related list, select New.
    1. In the form, fill in the following fields:  
       {#build-first-remote-process-sync-integration__table_qkv_cwd_snb__entry__2}

       | Field | Description |
       |-|-|
       | Process Event | From the list, select Hardware Request Fulfilled. |
       | Inbound Subflow | Select Copy of Remote Process Sync Inbound Flow Template - Basic. |
       | Remote System | Select the lookup using list icon (![Lookup using list icon]()), and then select the Vendor Instance - Instance B record from the list. |
       [ ]

       {#build-first-remote-process-sync-integration__table_qkv_cwd_snb}
    2. Leave all other fields as they are, and then select Submit.
    {#build-first-remote-process-sync-integration__substeps_pkv_cwd_snb}

## Result

We've finished building our Remote Process Sync integration. The integration will now trigger whenever a user creates an Incident record with the Hardware assignment group in Incident A. When this happens:

* The fields specified in Instance A's Capture Definition are captured and stored in a local record.
* The local record is correlated with a remote record in Instance B.
* The captured fields are mapped to the fields we specified in Instance B's Inbound Flow.
{#build-first-remote-process-sync-integration__ul_tyv_dtt_wbc}

Then, when a user resolves the correlated Incident record in Instance B:

* The fields specified in Instance B's Capture Definition are captured and stored in a local record.
* The local record is correlated with the remote record in Instance A.
* The captured fields are mapped to the fields we specified in Instance A's Inbound Flow.
{#build-first-remote-process-sync-integration__ul_gbr_2tt_wbc}

## What to do next

Test out your Remote Process Sync integration by creating an Incident record in
Instance A with the Hardware assignment group. Then, resolve the correlated Incident
record in Instance B. If your correlated records don't sync as expected, check your
Inbound API User's credentials and Process Sync Definition configuration in each
Instance. If you continue to experience issues with your example integration, refer
to [Monitoring and troubleshooting your integration](https://www.servicenow.com/docs/RjjwffVpMy~PIQIP21gOlg#getting-started-with-remote-process-sync__monitoring-troubleshooting-rps).

*[\>]: and then


