Customer 360 Extension for Salesforce > Installing Customer 360 Extension for Salesforce > Processing inbound data in real time
  

Processing inbound data in real time

You can synchronize Salesforce contact records, person account records, and account-to-contact relationships with Customer 360 SaaS in real time. Records created or updated in Salesforce can be accessed immediately in Customer 360 SaaS.
To configure Salesforce to process records in real time, perform the following tasks:
  1. 1Install the Salesforce managed package in the Salesforce organization.
  2. For more information about the Salesforce managed package, see Installing the Salesforce Managed Package.
  3. 2Import the Application Integration assets for real-time inbound data synchronization.
  4. For more information about importing Application Integration assets for real-time inbound data synchronization, see Importing the Application Integration assets for real-time inbound data synchronization.
  5. 3Configure the Salesforce connection.
  6. For more information about configuring Salesforce connection, see Configuring the Salesforce connection.
  7. 4Configure the Customer 360 connection.
  8. For more information about configuring Customer 360 connection, see Configuring the Customer 360 connection.
  9. 5Configure Application Integration URN mappings for real-time inbound data synchronization.
  10. For more information about configuring Application Integration URN mappings for real-time inbound data synchronization, see Configuring Application Integration URN mappings for real-time inbound data synchronization.
  11. 6Publish the Application Integration assets for real-time inbound data synchronization.
  12. For more information about publishing the Application Integration assets for real-time inbound data synchronization, see Publishing the Application Integration assets for real-time inbound data synchronization.
  13. 7Create Salesforce flows for each asset.
  14. For more information about creating Salesforce flows, see Creating Salesforce flows.

Importing the Application Integration assets for real-time inbound data synchronization

After you install the Salesforce managed package, import the Application Integration assets to Customer 360 SaaS.
Before you import the assets, extract the extension package. For more information about extracting the extension package, see Downloading and extracting Customer 360 Extension for Salesforce.
  1. 1In Application Integration, click Explore > Import.
  2. 2Navigate to the following file:
  3. <Extracted extension package>/4_CAI_Assets/4_CAI_Assets_RT_Inbound.zip
  4. 3Click Open.
  5. The Import Assets page lists the assets in the file.
  6. 4Ensure that all the assets are selected, and click Import.
  7. 5On the My Import/Export Logs page, verify that the import job is successful.

Configuring the Salesforce connection

After you import the assets, configure the Salesforce connection.
  1. 1In Application Integration, click Explore > Customer360 > Salesforce Extension > Salesforce.
  2. 2To authenticate the Salesforce connection using OAuth, select OAuth in the Authentication Type list.
  3. 3On the Properties tab, configure the connection properties.
  4. 4Click Save.
  5. 5Test the connection, and ensure that it's successful.
  6. 6Expand the Actions menu, and click Publish.

Configuring the Customer 360 connection

After you configure the Salesforce connection, configure the Customer 360 connection.
  1. 1In Application Integration, click Explore > Customer360 > Salesforce Extension > Customer360.
  2. 2On the Properties tab, provide the following details:
  3. 3Click Save.
  4. 4Expand the Actions menu, and click Publish.

Configuring Application Integration URN mappings for real-time inbound data synchronization

After you configure connections, create the source system URN mappings to deploy the real-time inbound assets to the cloud.
    1In Application Integration Console, click Deployed Assets, and select Cloud.
    2Click the URN Mappings tab.
    3Create the following URN mappings:
    URN
    Sample URL
    Customer360URL
    https://<POD name>-mdm.dm-<POD region>.informaticacloud.com
    Reference360URL
    https://<POD name>-mdm.dm-<POD region>.informaticacloud.com/rdm-service
    SourceSystemID
    infac360sf_src_Salesforce
    For more information about URN Mappings, see URN Mappings.

Updating the runtime environment

Update the runtime environment to run the Secure Agent on the Cloud Server.
    1In Application Integration, click Explore > Customer360 > Salesforce Extension > infac360sf_proc_GetCrosswalkId.
    2Expand the Actions menu, and click Publish.
    The infac360sf_proc_GetCrosswalkId process publishes successfully.
    3On the Design page, click Start.
    4In the infac360sf_proc_GetCrosswalkId Properties section, click Start.
    5Set the Run On field value to Cloud Server.
    6Click Save.

Publishing the Application Integration assets for real-time inbound data synchronization

After you configure the Customer 360 URLs in the Application Integration assets, publish the assets.
Note:
To avoid caching issues, use the incognito mode in your browser when you work with the Application Integration assets.
  1. 1In Application Integration, click Explore > Customer360 > Salesforce Extension.
  2. 2Select an asset, expand the Actions menu, and click Publish.
  3. Publish the assets in the following order:
    1. aC360SaaSConnector_ListRefDataSets
    2. binfac360sf-app-conn-ListRefDataSets
    3. cinfac360sf_proc_GetCrosswalkId
    4. dC360SaaSConnector_GetCrosswalkMapping
    5. einfac360sf-app-conn-GetCrosswalkMapping
    6. finfac360sf_proc_GetCrosswalkMapping
    7. ginfac360sf_proc_GetTargetValueFromCrosswalkMapping
    8. hinfac360sf_srvconn_salesforce_account_inbound_rt
    9. iinfac360sf-appconn-salesforce-account-inbound-rt
    10. jinfac360sf_proc_salesforce_account_organization_inbound_rt
    11. kinfac360sf_srvconn_salesforce_personaccount_inbound_rt
    12. linfac360sf-appconn-salesforce-personaccount-inbound-rt
    13. minfac360sf_proc_salesforce_personaccount_person_inbound_rt
    14. ninfac360sf_srvconn_salesforce_contact_inbound_rt
    15. oinfac360sf-appconn-salesforce-contact-inbound-rt
    16. pinfac360sf_proc_salesforce_contact_person_inbound_rt
    17. qinfac360sf_srvconn_salesforce_contact_contactrel_inbound_rt
    18. rinfac360sf-appconn-salesforce-contact-contactrel-inbound-rt
    19. sinfac360sf_proc_salesforce_contact_contactrel_inbound_rt

Creating Salesforce flows

After you publish the assets, set up Salesforce outbound messages, and create a Salesforce flow for each process to send the outbound message when a record is created or updated.

Setting up Salesforce outbound messages

Before you configure the Salesforce flows, set up the outbound messages for each Salesforce object.
  1. 1Log in to your Salesforce account.
  2. 2Click the quick access menu (The image shows the quick access menu.), and then click Setup.
  3. The Setup Home page appears.
  4. 3Under PLATFORM TOOLS, click Process Automation > Workflow Actions > Outbound Messages.
  5. The Understanding Workflow page appears.
  6. 4Select Don't show me this page again, and click Continue.
  7. The Outbound Messages page appears.
  8. 5Click New Outbound Message.
  9. 6Select the object with the fields that you want to include in the message.
  10. The following table lists the Salesforce objects and the corresponding processes for which you must create outbound messages:
    Salesforce Object
    Process
    Account
    infac360sf_proc_salesforce_account_organization_inbound_rt
    Person account
    infac360sf_proc_salesforce_personaccount_person_inbound_rt
    Contact
    Create outbound messages for the following processes:
    • - infac360sf_proc_salesforce_contact_person_inbound_rt
    • - infac360sf_proc_salesforce_contact_contactrel_inbound_rt
  11. 7Click Next.
  12. The Configure Outbound Message page appears.

Configuring an outbound message for Salesforce objects

After you select the Salesforce object, enter the details of an outbound message and select the fields that you want to include in the message.
    1In the Configure Outbound Message page, for the Name field, enter a name for the outbound message.
    For example, enter the name infac360sf_msg_account_outbound.
    2In the Unique Name field, enter a unique name for the outbound message.
    3In the Description field, enter a description for the outbound message.
    4In the Endpoint URL field, enter the endpoint URL. To get the endpoint URL from Application Integration, perform the following tasks:
    1. aIn Application Integration, click Explore > Customer360 > Salesforce Extension.
    2. bFor each of the following processes, perform steps 4.c through 4.e:
    3. cSelect the process.
    4. dFrom the Actions menu, select Properties Detail.
    5. eCopy the Salesforce Outbound Message URL to use as the endpoint URL.
    5Select Send Session ID.
    6In the Account fields to send section, add the required fields from Available Fields to Selected Fields.
    7Click Save.

Building Salesforce flows

After you specify Salesforce outbound messages for the workflow action, create Salesforce flows for each process.
  1. 1Log in to your Salesforce account.
  2. 2Click the quick access menu (The image shows the quick access menu.), and then click Setup.
  3. The Setup Home page appears.
  4. 3Under PLATFORM TOOLS, click Process Automation > Flows.
  5. The Flows page opens.
  6. 4Click New Flow.
  7. The New Flow dialog box appears.
  8. 5Select Record-Triggered Flow and click Create.
  9. 6Select the object whose records trigger the flow.
  10. 7To configure the trigger, enable A record is created or updated.
  11. 8To set the entry conditions, select Formula Evaluates to True.
  12. 9In the Formula field, enter a condition for the object.
  13. For more information about the processes for Salesforce objects, see the table in Setting up Salesforce outbound messages.
    The following table lists the conditions that you can configure for each process:
    Application Integration Process
    Condition
    infac360sf_proc_salesforce_account_organization_inbound_rt
    OR( AND ( ISNEW(), {!$Record.RecordType.DeveloperName} = 'Business_Account', ISBLANK({!$Record.Customer360_Id__c}), ISBLANK({!$Record.Customer360_Sync_Date__c}) ) , AND ( NOT(ISNEW()), {!$Record.RecordType.DeveloperName} = 'Business_Account', NOT(ISCHANGED({!$Record.Customer360_Sync_Date__c})), NOT(ISCHANGED({!$Record.Customer360_Id__c})), NOT(ISBLANK({!$Record.Customer360_Id__c})), NOT(ISBLANK({!$Record.Customer360_Sync_Date__c})) ))
    infac360sf_proc_salesforce_personaccount_person_inbound_rt
    OR( AND ( ISNEW(), {!$Record.RecordType.DeveloperName} = 'PersonAccount', ISBLANK({!$Record.Customer360_Id__c}), ISBLANK({!$Record.Customer360_Sync_Date__c}) ) , AND ( NOT(ISNEW()), {!$Record.RecordType.DeveloperName} = 'PersonAccount', NOT(ISCHANGED({!$Record.Customer360_Sync_Date__c})), NOT(ISCHANGED({!$Record.Customer360_Id__c})), NOT(ISBLANK({!$Record.Customer360_Id__c})), NOT(ISBLANK({!$Record.Customer360_Sync_Date__c})) ))
    infac360sf_proc_salesforce_contact_person_inbound_rt
    OR( AND ( ISNEW(), ISBLANK({!$Record.Customer360_Id__c}), ISBLANK({!$Record.Customer360_Sync_Date__c}) ) , AND ( NOT(ISNEW()), NOT(ISCHANGED({!$Record.Customer360_Sync_Date__c})), NOT(ISCHANGED({!$Record.Customer360_Id__c})), NOT(ISBLANK({!$Record.Customer360_Id__c})), NOT(ISBLANK({!$Record.Customer360_Sync_Date__c})) ))
    infac360sf_proc_salesforce_contact_contactrel_inbound_rt
    OR (AccountId <> '', ISCHANGED(AccountId))
  14. 10To validate the syntax, click Check Syntax.
  15. 11Click Done.
  16. 12To add an action to run immediately after the flow is triggered, click Add element icon.
  17. 13Click Action.
  18. The New Action dialog box appears.
  19. 14Select Outbound Message.
  20. 15From the Action bar, select the outbound message.
  21. 16Enter the label and API name.
  22. For example, enter infac360sf_msg_account_outbound.
  23. 17Click Done, and click Save.
  24. The Save the flow dialog box appears.
  25. 18Enter the flow label and flow API name.
  26. For example, enter infac360sf_msg_account_outbound.
  27. 19Click Save, and then click Activate.
  28. 20Repeat steps 3 through 19 for all Salesforce objects.

Testing the integration for real-time inbound data synchronization

After you create the Salesforce flows, test the integration between Salesforce and Customer 360 SaaS.
Create or update a record in Salesforce. The Application Integration process synchronizes the record to Customer 360 SaaS. Verify that the record appears with the updated data in Customer 360 SaaS.