You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportdefault{asyncfetch(req,env){letsomeEvent={url: req.url,createdTimestamp: Date.now()};// Trigger our Workflow// Pass our event as the second parameter to the `create` method// on our Workflow binding.letinstance=awaitenv.MY_WORKFLOW.create({id: awaitcrypto.randomUUID(),params: someEvent,});returnResponse.json({id: instance.id,details: awaitinstance.status(),});returnResponse.json({ result });},};
Expected Behavior
exportdefault{asyncfetch(req,env){letsomeEvent={url: req.url,createdTimestamp: Date.now()};// Trigger our Workflow// Pass our event as the second parameter to the `create` method// on our Workflow binding.letinstance=awaitenv.MY_WORKFLOW.create({id: awaitcrypto.randomUUID(),params: someEvent,});returnResponse.json({id: instance.id,details: awaitinstance.status(),});},};
Additional information
No response
The text was updated successfully, but these errors were encountered:
Example URL(s)
https://developers.cloudflare.com/workflows/build/events-and-parameters/#pass-data-to-a-workflow
Actual Behavior
Expected Behavior
Additional information
No response
The text was updated successfully, but these errors were encountered: