Skip to main content

Hi everyone,

I have a Zap that triggers when a new customer is created in Shopify. The flow is as follows:

1. Trigger: New Customer in Shopify


2. Code by Zapier: Runs JavaScript to fetch metafields


3. Zoho CRM: Create Module Entry (Deals)


4. Zoho CRM: Additional Create Module Entry steps

The problem is:

If I remove the Code by Zapier step, the Zoho CRM steps execute correctly.

But if I include the Code by Zapier step (which fetches metafields), then the Zap stops processing after this step, and the Zoho CRM steps never execute.


What I’ve Checked So Far:

The Code step doesn't show any obvious errors.

The JavaScript returns a value (I confirmed via logs).

If the Code step is skipped, everything works fine.
 

Sometimes there are issues with the execution time of “Code by Zapier” (Limited to maybe 2 mins) as well as the response time for the request (30s maybe). You can re-check how much time the script takes to run to get the results and if it is taking more than the allowed time then you can divide it into two steps.

When testing manually this does not cause issues but when the zap is turned on it does not provide the desired result.


I’ve faced similar issues when working with Shopify metafields in a code step especially when the API response structure isn't exactly what Zapier expects. One thing that helped me was adding proper error handling with try/catch and using console.log() to inspect what’s actually coming back from Shopify. Also, make sure the fetch call is using the correct headers (like X-Shopify-Access-Token) and that the URL is properly formed even a small formatting issue can halt the entire Zap. Sometimes adding a short delay before the fetch can help if it’s a timing issue with data availability.


It seems like the issue lies in how the data is being passed between the Code by Zapier step and the Zoho CRM steps. A couple of things you could check:

  1. Return the correct value: Make sure your JavaScript in the Code step is properly returning data that the subsequent Zoho CRM steps can use. Without a return, those steps may not trigger correctly.

  2. Check input/output mappings: Verify that the output from the Code by Zapier step is correctly mapped to the fields in the Zoho CRM steps. If the output is not in the expected format, the Zoho steps might fail to execute.

  3. Test the Zap with sample data: Manually run the Zap with sample data to see if any issues appear when the Code step is included. This could help pinpoint if the issue is with the data flow.

  4. Add a delay or filter step: Sometimes adding a short delay or filter after the Code step helps ensure that data is correctly passed before the next action starts.

If you're also managing processes that require efficient tracking, like with, ensuring smooth data flow and integrations can make a huge difference in your workflow. It might be useful to reach out to Zapier support for more detailed troubleshooting if the issue persists


It seems like the issue lies in how the data is being passed between the Code by Zapier step and the Zoho CRM steps. A couple of things you could check:

  1. Return the correct value: Make sure your JavaScript in the Code step is properly returning data that the subsequent Zoho CRM steps can use. Without a return, those steps may not trigger correctly.

  2. Check input/output mappings: Verify that the output from the Code by Zapier step is correctly mapped to the fields in the Zoho CRM steps. If the output is not in the expected format, the Zoho steps might fail to execute.

  3. Test the Zap with sample data: Manually run the Zap with sample data to see if any issues appear when the Code step is included. This could help pinpoint if the issue is with the data flow.

  4. Add a delay or filter step: Sometimes adding a short delay or filter after the Code step helps ensure that data is correctly passed before the next action starts.

If you're also managing processes that require efficient tracking, like with, ensuring smooth data flow and integrations can make a huge difference in your workflow. It might be useful to reach out to Zapier support for more detailed troubleshooting if the issue persists

planets snapchat


Reply