Skip to Content

How to update a flag based on end date

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 08, 2017 at 10:18 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded