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
suji srinivasansuji srinivasan 

Hi, I need to update field . if emailbouncedreason field have value then it has to update lead status field

i tried in process builder and flows but its not updating instantly lead status field .
condition used:
Emailbouncedreason isnull =false
Leadstatus=disqualified
when i edit the record that time only it updating lead status.
Best Answer chosen by suji srinivasan
PriyaPriya (Salesforce Developers) 

Hey Suji,

Process builder or flow or workflow will only trigger if you edit the record. 

So best approach is to write the Batch class and schedult it . 

So it automatically run and check if any record having the value for  Emailbouncedreason, then update its status.

Kindly mark it as the best answer if this information help.

Thanks,

Priya Ranjan