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
sornasorna 

Control the Status field of Entitlement

Hi Guys,

I need to control the status field of the Entitlement. As a standard functionality, if the system date (Today's date) is between start and end dates, the status is active and if it is greater than end date, status automatically changes to expired. But I need to customize this logic. Based on some criterias, I should prevent the status being changed from active to expired even after the end date. But I don't know the best approach to customize this. I can write a trigger but I just want to know is there a standard way or any declarative way to control the status value? 

 

Thanks in advance,

Sorna

Rakesh BoddepalliRakesh Boddepalli

The best way is to stop capturing the actual entitlement start date and end date in the standard date fields and capture them in the custom fields. 

And use workflows to set the End date based on your conditions.

 

Thanks,

Rakesh B