Re: Pass input data from trigger to Run code action

Solved

Pass input data from trigger to Run code action

Ed_Graham
Excursionist
17 1 0

Following on from the solution to my question here, I would like to know how to pass input data from a scheduled trigger to a Run code action in a workflow.  As per the screenshots below, I am trying to retrieve the scheduledAt variable within a Run code action; but when I log its value to the console, it shows as NaN.

Shopify4.pngShopify5.pngShopify6.png

Accepted Solution (1)

paul_n
Shopify Staff
1744 192 408

This is an accepted solution.

You are reassigning scheduledAt to be a a different variable, so that JavaScript is not working. 

 

input.shop.timezoneOffsetMinutes is not in your input query, but there might be other issues. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Replies 2 (2)

paul_n
Shopify Staff
1744 192 408

This is an accepted solution.

You are reassigning scheduledAt to be a a different variable, so that JavaScript is not working. 

 

input.shop.timezoneOffsetMinutes is not in your input query, but there might be other issues. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Ed_Graham
Excursionist
17 1 0

Thanks Paul - I can't believe I made that mistake!  Dearie me ... it's working now.