Skip to main content
pooja biswas ha fatto una domanda in #Formulas
Hi

Please validate my understanding

In Lead object, I have custom text field say Amount, data type=Number.

I have defined a validation rule on Lead object, if Amount < 1000 then ok else throw error

Now I have created a workflow rule on lead, some criteria, then field update on Amount object.

what happens when new Lead record created if amount > 1000, my guess it should throw error.

Please validate

Thanks

Pooja
2 risposte
  1. 20 gen 2017, 08:08
    Hi Pooja,

    It won't throw an error, because the validation rule runs before the workflow rule. So when the workflow updates the amount to a value greater than 1000, the validation rule is not re-triggered again and hence it will NOT throw any error.

    Check the order of execution in Salesforce in the below link. Check the point no 12 which specifically mentions that validation rules do not run again after workflow field updates.

    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm

    Kindly mark it as an answer if that resolves your query !
0/9000