I’m looking for some help with a set of workflows I’m building to support a partner référrąӏ* process.
We have a form that collects a referring partner’s email address and various other fields related to the client they’re referring, which are captured in a “Référrąӏ” custom object. Once the partner submits the form, a Référrąӏ object is created and triggers a workflow that updates the association label between the referring partner and Référrąӏ object, renames the Référrąӏ object, sends some notifications, and creates a new contact (if the form submission included information about the referred contact).
The Référrąӏ object workflow is working perfectly and doing almost everything I need, except creating a Salesforce task (since the object-based workflow cannot use this action).
I have a simple secondary contact-based workflow that branches based on a fields from the most recently created associated référrąӏ, then creates the Salesforce task. It works for the most part, but I am running into trouble when the form is submitted multiple times in quick succession, because the contact can’t clear the workflow fast enough to re-enroll.
I have tested various ways to trigger the contact workflow (see below) but since the contact simply can’t clear it in time to re-enroll, the ideal state would be for the object-based workflow to create the Salesforce task, as it is already running once per object vs. the contact workflow running multiple times for the same contact - can anyone suggest a solution/workaround for this?
Enrollment criteria I’ve tried for the contact-based workflow:
- Trigger the contact-based workflow based on a new référrąӏ object being associated to the contact (cannot be used as re-enrollment criteria)
- Use the object-based workflow to populate a field on the contact which triggers the contact-based workflow (can be used for re-enrollment, but gets cleared and repopulated too fast if a partner submits multiple forms in a row - they cannot be re-enrolled because they’re still in the workflow)
- Populate a field on the partner contact using a hidden form field (can be used for re-enrollment, but gets cleared and repopulated too fast if a partner submits multiple forms in a row - they cannot be re-enrolled because they’re still in the workflow)
*weird characters because the actual word is not permitted in community posts