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)
[
{
"first_name": "Alice",
"last_name": "Johnson",
"email": "alice.johnson@test.com"
},
{
"first_name": "Bob",
"last_name": "Smith",
"email": "bob.smith@test.com"
},
{
"first_name": "Charlie",
"last_name": "Brown",
"email": "charlie.brown@test.com"
},
{
"first_name": "Diana",
"last_name": "Miller",
"email": "diana.miller@test.com"
},
{
"first_name": "Ethan",
"last_name": "Davis",
"email": "ethan.davis@test.com"
}
]
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
- 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