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
Pankaj PariharPankaj Parihar 

workflow for calculating date

hi friends
Update the Shipment Status field to “Delayed” if a shipment has exceeded the expected delivery date and not reached the customer.
plz tell me the steps to do this workflow
Suraj TripathiSuraj Tripathi
Hi Pankaj,

Try using the below formula:
Setup > Quick Find Box / Serch Box > Workflow & Approval > Workflow Rules. 
Object - Shipment
Evaluation Criteria Evaluate the rule when a record is  ------>>>  created, and any time it’s edited to subsequently meet criteria.
Rule Criteria (Filter) ---------->>>> Run this rule if the following criteria are met.
 
(Shipment: Status not equal to Delivered)
Immediate Actions ----->> None
Time-Dependent Actions1 day after Shipment: Expected Delivery Date
Field Update: Change Shipment Status field to Delayed on Shipment record.
 
Hope it Helps you. Please mark this as solved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Regards ,
Suraj