You are expecting 18 emails and it triggered 16 right? Can you show me the latest code?

Hello,

 

Issue was with encoded query, i changed to - gr.addEncodedQuery("active=true^startONThis week@javascript:gs.beginningOfThisWeek()@javascript:gs.endOfThisWeek()");

 

Seeems Working ,  testing in progress

Cool. Let me know if you need any help. 

Bhagyashri Sort
Kilo Guru

Hi,

You can use the schedule job for such type of repeated notification. Refer below links

Schedule Job

Schedule Script and Event

 

If my response helps you, make it correct and helpful.

Thanks

Bhagyashri Sorte.

  

Swapnil Soni1
Giga Guru

Hi Priyanka,

 

Please check the link this helps you

https://community.servicenow.com/community?id=community_blog&sys_id=e30d6ea5dbd0dbc01dcaf3231f96190d

 

Mark correct or helpful if this works to you.

Thanks

Swapnil