function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vaibhab ShahVaibhab Shah 

ischanged and isnew in processbuilder

Hi,

I have a scenario 
1. While creating a record on Account, i need to check whether city and State both are not blank.
2. On editing if the city is changed to Ahmedabad.
I have written the below formula, action is only getting fired on creation of a new record but when i am editing by changing the city to Ahmedabad it is not working.

OR
(
AND
(ISNEW(),
NOT(ISBLANK([Account].City__c)),
NOT(ISBLANK([Account].State__c))
),
AND
(
ISCHANGED([Account].City__c),
IF(([Account].City__c) == 'Ahmedabad', true, false)
)
)

Can anyone help me on this?

Rgds,
Vai


 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Vaibhab,

Is the above scenario working previously or is it something that you are implementing newly? and are you getting any error as such?

And is it happening only with Ahmedabad or is it happening with any other place values as well?

Have you considered Trigger where in you can mention if it is a record update or record insert you can have a condtional statement and execute the logic, this is one way I can possibly think of

Regards,
Anutej.