Can a User Event script trigger from a customer cr...
# suitescript
x
Can a User Event script trigger from a customer created from an Online Customer form? My preliminary findings are saying no.
a
What record is the UE deployed to? customer?
x
Yeah
a
I think you might need to also deploy it to Lead / Prospect
x
Hmmm. I'll have to try it later. In this case, the records come in as a Customer
a
stage? closed-won?
x
Yeah
a
huh, that's interesting, I'm not aware of any reason why that shouldnt fire the UE then, sorry I don't have anything else to offer but that doesn't sound right
x
I'll try what you suggested a bit later.
a
the customer is the only thing that's created? or does it create a case or someting too?
x
Nope.
a
cos a UE won't fire if the context of it triggering is ALSO a UE
you can't daisy chain UEs to keep firing each other off 🙂
x
Well, in some cases it will create a folder if an attachment is added, but I tried having it run on the folder, too and don't see any evidence of it firing. I have a log.debug as the first real line of the script.
a
you didn't remove all the other contexts from the context filtering did you? I think you identified the correct one, but I'd just select them all as a test to be sure
x
Yeah, they were all selected
a
this is a suitecommerce thing?
maybe check in that channel
x
No, not SuiteCommerce. Just one of the Online Customer forms you get in Setup > Marketing
a
gotcha... yeah that seems odd, it should fire and you've done all the things I can think of
x
PS, adding a script to the form itself won't get what I need either. I think that's client side and what I need is server side.
a
right, if that could work though you might be able to work around it by calling a suitelet from the CS
but you shouldn't have to do taht
could you test a WF too? see if that triggers?
x
Worst case scenario, I can always take the logic and set it up as a Scheduled/MapReduce.
a
might be able to use a WFA script instead if that does trigger and you need scripting
yeah i guess scheduled could work too, still weird, report back if you figure it out
👍 1
x
@Anthony OConnor I actually got it to (kinda) work! All I did was change the deployment to run on a Lead, and change it back to run on a Customer. There are some conditions in the script that failed during that particular point in time which means I'm gonna have to go the Scheduled/MapReduce route anyway, but it's good to know it'll actually trigger 😛
👍 1