Hello all,
I’m having some difficulty getting a User Event script to run on a custom record that is created from an online form. The basic process is that a potential Vendor would submit a form online (a custom html online form) and this creates a custom record called Vendor Lead Record to hold the values and then the script would fire and create a Vendor record from there.
The User Event script runs on the custom record called Vendor Lead Record and is supposed to run automatically when it is created (ie when the online form is submitted), but it doesn't. I have it set for After Submit, but have tried the other methods too. I have also tried explicitly stating on Create in the Deployment and also in the script itself. I've also tried a ton of other tweaks to try to get it working, but it just never fires on Create. It does fire on Edit from the User Interface, so I know the script itself works. The online form also works in creating the Vendor Lead Record.
As of now, I've settled for a workaround that seems to work, which is just doing a scheduled script that runs every 15 minutes for all “unprocessed” records which is determined by a simple check box that gets checked by the script after it’s done creating the vendor record. Ultimately, this might be a better solution for governance purposes, but I’m just bothered that I couldn't get it to work as a User Event.
Does anyone have any clues / suggestions why this might not work? I've read other posts where people had similar processes that they got to work but I don't think I've read any that involved a custom record.
Thanks in advance