Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Scheduled report uses a condition but constantly runs?

Jared Wason
Tera Guru

Hello,

I have setup a report that I want to run the 2nd Tuesday of each month. I have setup the condition below to make it run only on the 2nd Tuesday. However for some reason this keeps triggering every day despite when I check in a background script it shows the results as returning false. Does anyone see what I am doing wrong here?

 

JaredWason_0-1666117912607.png

JaredWason_1-1666118076831.png

 

 

10 REPLIES 10

Thanks for this, I tried setting the time instead of utilizing the 'Execute Now'  button and the report is still getting sent. Also I am not seeing my log statements that I added show up. Any idea why that would occur?

Refer to below KB Article, this could be the reason.

[Orlando] Introduced script sandboxing in Scheduled Reports. Glide classes such as GlideDate, GlideT... 

 

Below images are from above article for reference.

MuhammadKhan_0-1666125426837.pngMuhammadKhan_1-1666125452267.png

 

Tried the java script Date() class and still no luck. Thanks though!

Did you try without encapsulating your script in a function?

Yeah, I have tried that as well.