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.

Set Current Date Time In Business Rule Action

thisisauniqueus
Giga Expert

Hi

How can i set the value of a field(work start) to current Date Time based on another filed's value in a business rule action?

find_real_file.png

Regards.

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

Hi John,



Please see the link below.



Set date via business rule action



Regards,


Harshvardhan



PS - Please mark Helpful, Like, or Correct Answer if applicable.


View solution in original post

10 REPLIES 10

Hi Abhinay,

I am not able to set the current date time to the custom field using business rule:

Could you please help on this. Please find the details below.

 

I tried in my personal instance so many ways.

 

1. Before--> insert or update

2. Before--> insert

3. Before --> Update

3. After -->insert

4. After --> update

5. After --> insert or update

 

When state changes to closed complete, the resolved date field should set the current date and time.

I took field type as "date/time".

 

"Actual requirement is we need to set the resolved state field with current date and time---> when state changes to resolved"