I followed the tutorial for creating a custom flow action here. I have a custom flow action called THS Flow Apply Discounts that I want to attach to “Draft order created” and it needs the ID of the draft order. I’m getting an error “Required data not found” though when I try to set up the flow (see screenshot).
It looks like your configuration is correct as you set the order_reference as a required field. However, the error you’re experiencing may be due to the fact that the draft order ID is not being passed properly to your custom action.
The “Draft order created” trigger should pass the ID of the draft order that triggered the workflow. Make sure that your custom action is correctly configured to receive this ID from the trigger. If the custom action is not receiving the ID, it could result in the “Required data not found” error.
Make sure that your custom action is correctly configured to receive this ID from the trigger. If the custom action is not receiving the ID, it could result in the “Required data not found” error.
Can you please explain this? I thought that was what I was doing with the order_reference setting field.