Choose a Shopify Store to Connect to During Runtime

When the Shopify Adapter is configured as an invoke connection in an integration, you can use the multidomain feature to select the store to which to connect. This pattern describes how you can use the multidomain feature for Shopify Adapter invoke (target) connections and select the store with which to connect dynamically during runtime.

To use this feature, ensure that the connection IDs of the stores are passed in the request mapper.

  1. Create an app-driven orchestrated integration.
  2. Drag and configure a SOAP Adapter into the integration as a trigger connection.
  3. Drag a Shopify Adapter as an invoke connection into the integration canvas.
  4. Configure the Shopify endpoint:
    1. On the Basic Info page, provide an endpoint name, and click Next.
    2. On the Action page, click the Create action.
    3. On the Operations page, select the Products module, the Product object, and the Create a new product operation.
    4. On the Summary page, review your selections, and click Done.
  5. In the mapper, map ConnectionId from ConnectivityProperties to pass the connection identifier of the Shopify store (which is not a primary store).
  6. Click Validate, and then click Close.
  7. Open the response mapper and perform the required mappings.
  8. Click Validate, and then click Close. The completed integration looks as follows:
    This integration shows a SOAP Adapter, a mapper, a Shopify Adapter, a mapper, and a return icon.

  9. When complete, save and activate the integration. As a result, the product object is created in the Shopify store.
  10. If required, you can enter the related connection identifier value as input for the ConnectionId parameter to create the product in the particular Shopify store.