Can anyone tell me what trigger types can be used ...
# suiteflow
e
Can anyone tell me what trigger types can be used with Create Record? I've tried Before Load, Before Submit, and After Submit - but each time the logs say "Check: Action allowed for execution context USEREVENT? FALSE" and that action doesn't occur
Or is that telling me that Create Record can only be triggers from a Client trigger maybe?
c
No, it's only allowed to use server triggers. See SuiteAnswers 40597.
I think the issue is just with your context. Are you only firing the workflow when a UE script acts? There's an order of operations on the trigger b/w UE scripts and WFs. Not sure if that's the cause of your error tho.
e
@Catherine Fray - Thanks for the reply! So the over arching goal is to create a Custom Record with some information from the Lead record when a new Lead is created with a Context of "Web Store"- I have the "main" Trigger Type as "After Record Submit" and the Event Type as "Create" and the Context as "Web Store" (these are all on the Workflow itself, not the State/Action) Then in State 1, I have 2 actions; One is Create Record and the settings on that Action are exactly the same... Trigger Type as "After Record Submit" and the Event Type as "Create" and the Context as "Web Store" The second action I have is an email to myself (this was just to see if actions were getting triggered at all), and that has the same settings as well, but the email sends just fine. Anything look strange to you?
c
Hm....no, but I have never worked with the Web Store context
e
Fair enough - I appreciate your response!
r
If I understand correctly your actions are set to run on Webstore Context but based on the logs it tried running on USEREVENT which is not selected which is why you get the error. Have you tried selecting USEREVENT also for your actions?
e
@rustyshackles Context and Trigger Types are different Contexts can be Web Store or UI or Suitelet Trigger Types are Before Load / Before Submit / After Submit (and also client ones, but they are relevant here)
k
I would just add a checkbox that is marked by default and have a workflow that runs every thirty minutes and creates the record and uncheck the box
Thirty minute delay but less work to figure out
n
Are there Userevents on the Custom Record that are causing this?
e
I eventually moved it all to a script - but I think you brought up a good question @Netsuite Tragic... The Custom Record does have a few UE scripts that run on it - would that prevent me from being able to create a that record type from a Workflow?