Subscribe to a GCP Pub Sub Topic and Use Retrieved Data to Create a Product in Shopify

You can create a product in Shopify using data retrieved by subscribing to the GCP Pub Sub topic using the GCP Pub Sub Adapter.

The GCP Pub Sub Adapter retrieves the data by subscribing to the GCP Pub Sub topic. Using this data, a product is then created in Shopify with the help of the Shopify Adapter.
  1. Create the Shopify Adapter and GCP Pub Sub Adapter connections.
  2. Create an application integration.
  3. Drag a GCP Pub Sub Adapter into the integration canvas as a trigger connection.
  4. Configure the GCP Pub Sub Adapter as follows.
    1. On the Basic Info page, provide a name.
    2. On the Configuration page, select the Products_shopify topic.
      Sample payload is automatically selected.
    3. On the Summary page, review your selections.
  5. Drag a Shopify Adapter into the integration canvas.
  6. Configure the Shopify Adapter as follows:
    1. On the Basic Info page, provide an endpoint name.
    2. On the Operations page, select the Create operation.
    3. Select Products as a module.
    4. Select Product as an object.
    5. Select create a new product as an operation.
    6. On the Summary page, review your selections.
  7. In the mapper, map the fields from the GCP Pub Sub response to pass the data to the Shopify Adapter. The GCP Pub Sub response provides an input to the Shopify Adapter to create a product.

    The Sources, Mapping canvas, and Target sections of the mapper are shown. Source elements are being mapped to Target elements.

  8. Click Validate.
    The completed integration looks as follows.


    The integration shows a trigger, map action, and invoke.

  9. Add the tracking element in the Business identifier field and save the flow.
  10. When complete, activate the integration. As a result, the Shopify Adapter creates a product using data retrieved from subscribing to the GCP Pub Sub topic with the help of the GCP Pub Sub Adapter.