[SalesForce] Is Changed operator in Process Builder

I am checking whether Order OwnerId is changed or not in Process buider.If Changed update related records.

But getting below error when Order.Close_Date__c is updated through Workflow field update when Order.order_Status__c is set to Closed.

The flow failed to access the value for myVariable_old.OwnerId because it hasn't been set or assigned.

Here is the condition in process builder

enter image description here

It looks like Is Changed operator is added recently in Spring 15.

Is it something related to this idea which says process builder – Access to Owner Fields

Some helpful link1, link2

Best Answer

I think it's because it's a new order. There is no old value to compare against. Change the process builder criteria to a formula which makes sure it doesn't fire if it is new.

Ischanged( [Order].OwnerId) && ! Isnew() 

As an important side note, I often need to use formulas in process builder criteria for Ischanged and Isnew as Salesforce doesn't consider a new record to be a chanted record.

Related Topic