Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

when start time starts then set the value through business rule

lata1
Tera Contributor

Hello All,

 

I have a start date(date/time field) and  when start time starts then only set the values in my requirement. 

 

For example today is mar 13 and user selected march 17 in that start date field, when that selected time(17 march) occurs then only i want to set the values.

 

Thanks,

srujana

6 REPLIES 6

Prashant Ahire
Kilo Sage

@lata1 

Can you please mention where exactly you to set the values.

Hi Prashanth,

 

Through business rule i want to set value

 

Thanks.

lata1
Tera Contributor

 

here date logic code

current.u_cwc ='yes';

current.u_subcwc='yes';

here i need help in how to do when start time starts then only set the values

Danish Bhairag2
Tera Sage

Hi @lata1 ,

 

U cannot achieve this via BR as BR only works before/after update/insert of any value in the field. In this case the field will not be updated or inserted hence even though BR is created it will not trigger.

 

U can go with scheduled Job , which should run daily n which ever start date is today's date it will execute it's logic. So for eg scheduled job executes on 17 then if there is any record whose start date is 17 that will be picked up n updated.

 

Thanks,

Danish