For the complete documentation index, see llms.txt. This page is also available as Markdown.

🎯 Exercise 6

Create 5 Customers in Shopify and Generate a Single Log File in SFTP

Objective

Create 5 customers in Shopify, collect their details during execution, and generate one consolidated file in SFTP after the workflow completes.

Reference API

https://shopify.dev/docs/api/admin-rest/2025-07/resources/customer#post-customers

Use Create A Customer API under Shopify Beta Public System


Scenario

A business wants to:

  • Create multiple customers in Shopify

  • Maintain a single consolidated log file instead of multiple entries

So, after all customers are created:

  • Their details should be combined (concatenated)

  • A single file should be created in SFTP


What You Need to Do

Step 1: Provide Input Data (5 Customers)

Step 2: Create Customers in Shopify

  • Loop through the input data

  • Connect to Shopify and use Create Customer API

Step 3: Collect Data During Execution

  • For each successful response:

  • Extract:

  • First Name

  • Last Name

  • Email

  • Build a combined string (concatenation)

👉 Example format:

Customer Created:

Name: Alice Johnson

Email: alice.johnson@test.com

Customer Created:

Name: Bob Smith

Email: bob.smith@test.com

Step 4: Create File After Loop

  • After all customers are processed , add an SFTP step (outside the loop)

  • Choose Upload File

Step 5: Configure File Content

  • Use the concatenated result as file content

  • File path: /logs/customers_summary.txt

Step 6: Run the Workflow

  • Click Sync Now

  • Verify:

  • 5 customers created in Shopify

  • One file created in SFTP

Note: Check if the required scope is configured correctly in the Shopify app.

Expected Outcome

  • All 5 customers are created successfully

  • A single file is created in SFTP

  • File contains details of all customers

Last updated

Was this helpful?