Hi All - we’re using a User Event Script to create...
# general
m
Hi All - we’re using a User Event Script to create a Sales Order and a Workflow that’s initiated upon creation of a Sales Order is not being initiated when our UE Script Creates the Sales Order. We have all contexts enabled on the Workflow.. Anyone run into this before?
m
You cannot trigger a user event, from another user event. so if your WF is using event based triggers they will not work
m
Thanks for the quick response! For additional context - our use case is a user clicks a “Create Sales Order” button from the RMA Record, and then the script grabs data from the RMA and creates the Sales Order.
b
your additional context conflicts with what you originally shared
you can use a before load entrypoint from a user event script to add a button
but the code for the button runs clientside on the browser, it wouldnt be running on the server like a user evevt script
share your actual code
z
We're using a workflow to render or not render the button - the action of clicking that button makes a custom boolean on the RMA true, which kicks off our user even script. This user even script successfully creates to sales order with everything it needs, however - there is another approval workflow that resulting sales order should enter on creation but doesn't.
b
then you are back to no chaining user events or workflows
you will have to redesign your solution