Workflow is selected under Context Filtering, and ...
# suitescript
j
Workflow is selected under Context Filtering, and Audience includes All Roles.
b
j
So the flow is Suitelet submits -> WF runs (WF context is set to ‘Suitelet’) and creates a SupportCase and then the UE ‘afterSubmit’ should run on the SupportCase
b
are you trying to get a user event script to execute by a workflow
j
well I mean technically I want the User Event Script to always run no matter how the SupportCase was created
here, it is created by a Workflow on another record type
UE is running fine when support case created in UI or via email case capture
your link above says
User event scripts cannot be executed by other user event scripts or by workflows with a Context of User Event Script.
but the WF does not have a context of “User Event Script”
b
given that you cant make it work
do you think think the documentation is missing the context for workflows
or even that workflows and user events are implemented the same in the backend as a user event
j
not sure. Either I’m totally misreading the documentation (possible) or the documentation is wrong (likely).
I have a workaround in place, but it means that anytime I make a similar WF (and those will be common) I’ll have to remember to add “do this extra thing cuz the UE won’t do it”
b
A scheduled script or map reduce script is the more reliable tool to make sure a script runs on all records