Hi. I've got a SuiteScript RESTlet that gets called from our corporate site whenever a prospect contacts us by filling out a form. It creates new Leads and updates existing data on old Leads if someone submits more than once. I found an edge case where our workflow to (1) auto-respond to the lead and (2) notify the sales team didn't execute, because it was triggered only by the CREATE of a new customer/lead. A lead that went cold 3 months ago didn't trigger email workflow because their Customer record already existed.
I'm trying to determine the best way to make sure, from the workflow, that we always trigger when someone posts via the website into the RESTlet, but we don't trigger every time someone edits the customer by hand. I like using the Workflow to send the emails because I can use templates, so I'd like to keep using a workflow for sending the emails (rather than doing so via the RESTlet).