Updating two times

Shaik22
Tera Expert

Hi,

 

created one field on incident - Test Date, When assignment group changes - time stamp populate on that field.The problem here is activities updating two times.

 

Business Rule - After - update

Script:  current.u_test_date = gs.nowDateTime();
             current.update();

Shaik22_0-1695396325355.png

 

1 ACCEPTED SOLUTION

Hi @Shaik22 

 

Can you try using Before BR ?

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

3 REPLIES 3

Vishal Birajdar
Giga Sage

Hi @Shaik22 

 

In script no need to use current.update() and not recommended to use current.update()

 

 Below code is enough.

Script: current.u_test_date = gs.nowDateTime();

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

@Vishal Birajdar  it creates only one activity when i remove current.update() but it is not update the timestamp in the field.Please see attached screenshot.

Shaik22_0-1695398185427.png

 

Hi @Shaik22 

 

Can you try using Before BR ?

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates