Skip to Content
0

How to update a flag based on end date

Feb 07, 2017 at 09:05 AM

43

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Saurabh Sharma Feb 08, 2017 at 10:18 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded