How to change dropdown values of the primary quote to something else when we duplicating it.
So, we have above two dropdown in the Quotes modules. Now, when we duplicate it, when want to update values for these two dropdowns automatically. How to do it?
Yeah, I thought that might be a problem. The workflows kind of operate like a before save hook. It could be timing thing since its a new record, when the workflow fires and checks the staus, the status may not exist in the bean yet.
You might have to do an after save hook so that AFTER the record is created the hook runs and changes the status. You can’t do this with worklfow, you’d have to code the hook.
HOWEVER, with after save hooks you have to be careful you don ’ t end up in an endless loop. At the beginning of the process you have to check that the hook hasn’t already been run, other wise, the save triggers the hook which saves the bean, which triggers the hook…
Thank you so much! Is it possible to create workflow such that when a particular quote is duplicated then send an email to sales person to update those values for older(primary) quote?
I don’t think so. It would have to trigger on the new quote that gets created when you duplicate and there is nothing to tell the workflow which new quotes to fire on. Just by duplicating a quote you couldn’t fire a WF.
However, if you created a relate field like “related quote” in the NEW quote you were creating and populated it, you could presumably fire a workflow that fires if “related quote” is populated on a new quote record and then the action send the email. (or I would create a task, which will send an email once assigned.).