Thanks Paul - I can’t believe I made that mistake! Dearie me … it’s working now.
Topic summary
A user encountered an issue passing the scheduledAt variable from a scheduled trigger to a Run code action in Shopify Flow. When attempting to log the value, it returned NaN instead of the expected data.
Problem identified:
- The variable
scheduledAtwas being reassigned within the JavaScript code, causing the reference error - Additionally,
input.shop.timezoneOffsetMinuteswas referenced but not included in the input query
Resolution:
- After the coding mistake was pointed out, the user corrected the variable assignment
- The workflow now functions as intended
The issue is resolved — the data now passes correctly from the trigger to the Run code action.