Send Multiple Records in a Single Message

The Salesforce Adapter Send Outbound Message action can send multiple records in a single message at specific times, particularly when a bulk data import occurs within Salesforce. Up to 100 records can be sent in a single message request. For example, if an outbound message trigger is enabled for Account create and Account is created in bulk in Salesforce.com, there are multiple records (up to 100 records) coming from Salesforce in a single message.

In the following scenario, the integration receives a single message containing multiple records. To support this scenario, you must configure the mapper when the request record shows a single occurrence, but contains multiple records. For this example, the steps to map the Notification element when it shows a single occurrence are shown.

  1. Click the Mapper icon in your integration.

  2. Click the parent element in the Target section (for example, the element Account for Salesforce Account).

    The Build Mappings page is displayed.

  3. Add a for-each loop to the parent element.

    1. Click the Mapping Components tab in the bottom left corner.

    2. Expand XSL Elements.

    3. Drag and drop the for-each function to the parent element of the Target section (for this example, Account).


      Description of salesforce_notif_elem.png follows
      Description of the illustration salesforce_notif_elem.png
  4. Drag and drop the Notification element to the select section inside the for-each loop.

  5. Validate and close the Build Mappings page.

  6. Complete the mappings.

    When complete, the mapper looks as follows:


    Description of salesforce_notif_elem2.png follows
    Description of the illustration salesforce_notif_elem2.png