Invoke Workflow When Only One Field Is Changed!

Hi

This is only configuration, but I see people not aware of such thing.

We all opt for code not knowing that there are standard ways to do so many things.

The following is one of that.

Requirement: When Stage of Opportunity is changed, Say, we have to update allowance (text) field.

Solution 1: Write a workflow rule and a field update.

Solution 2: Write a trigger which has the logic for checking if the field value is changed and do some more statements.

But there is one problem with Sol 1, i.e., this runs the FU every time record is changed, if our FU is a complicated formula field we would like to go with apex trigger. But there is standard way.

There is one option where we can run these FUs only when the field is changed.



And we also can write these formulas for rule criteria.

HTH
Prabhan

Comments

Popular posts from this blog

Passing URL parameters to controller in Lightning components/ AURA

Lightning spinner inside Button

Nested AURA:IFs in Lightning Components Salesforce