cancel
Showing results for 
Search instead for 
Did you mean: 

How to update a flag based on end date

resmi_v
Participant
0 Kudos

Dear Experts,

In my custom BO , I am having 4 fields value,start date ,end date, Active.

When end date is less than today, the Active flag for the record should automatically set as false .

How can I achieve this.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try something similar:

var Curr_Date = Context.GetCurrentSystemDate();

If(EndDate.LessThan(Curr_Date)) {

Flag=false or true ;

I have typed code here, have not checked fo sysntax and stuff in Studio.