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.
- Create an app-driven orchestrated integration.
- Drag and configure a SOAP Adapter into the integration as a trigger connection.
- Drag a Shopify Adapter as an invoke connection into the integration canvas.
- Configure the Shopify endpoint:
- On the Basic Info page, provide an endpoint name, and click Next.
- On the Action page, click the Create action.
- On the Operations page, select the Products module, the Product object, and the Create a new product operation.
- On the Summary page, review your selections, and click Done.
- In the mapper, map ConnectionId from ConnectivityProperties to pass the connection identifier of the Shopify store (which is not a primary store).
- Click Validate, and then click Close.
- Open the response mapper and perform the required mappings.
- Click Validate, and then click Close. The completed integration looks as follows:
- When complete, save and activate the integration. As a result, the product object is created in the Shopify store.
- 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.