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.

Capture Timestamp of the form submitted

SnowUserDev
Tera Contributor

Hey Community

 

I have 4-5 different forms on service portal which are linked to each other, each of them behaves as a different stage on the service portal.

 

Now the task is as soon as 1 form is submitted or the state changes or user moves from one form to another it should capture the timestamp.

I have a timestamp field created in each field.

How can I achieve this.

 

Thanks

1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage

Hi @SnowUserDev ,

 

Assuming you are talking about Record Producers over here. You can either create a BR on each table & whenever the stage is moved from one to another it must have certain field where it gets completed or something u can add that under the BR condition for eg state is completed then it should trigger after update. This way we make sure it just runs at that time only & updates proper time in Time stamp field.

 

Under advance u can write below script

 

current.time_stamp = new GlideDateTime();
current.update();

 

Thanks,

Danish

 

View solution in original post

6 REPLIES 6

Hi @Danish Bhairag2 ,

 

Will try the above solution n let u know

 

@Danish Bhairag2 

 

Thanks it worked