I have field u_date and need to check if the current date is greater to u_date by 15 min.

sachujayakumar
Kilo Contributor

I have field u_date and need to check if the current date is greater to u_date by 15 min.

1 ACCEPTED SOLUTION

 

Okay. Then simply make the BR to display query instead of after insert.

Then your Br executes whenever you open the incident. And if the incident u_date+15 minutes is more than current date, then you can show the message saying

gs.addInfoMessage("Current date is greater than u_date");

Mark the comment as a correct answer and also helpful if this answers your question.

 

View solution in original post

21 REPLIES 21

sachujayakumar
Kilo Contributor

Hello Asif,

find_real_file.png

 

Regards,

sachu Pillai

The 3rd log is missing. can you check and share that as well. If that is not coming, then it means there is an error you might see in your logs. Kindly check that.

gs.log("current date/time is "+gd1);

sachujayakumar
Kilo Contributor

here you go

Hi,

So as you can see the logs, your u_date (after adding 15 mins) is 10:02:36

and your current date/time is 09:46:11

Hence it is not entering your if condition.

When the current time crosses the u_date time, then it will enter the if condition.

Mark the comment as a correct answer and also helpful if this answers your question.

sachujayakumar
Kilo Contributor

Hello ,

So How Can I pop an alert once the 15 min is crossed.

if current time is (u_date+15 min) then the user should come to know, an alert or an error message should pop up.