Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Deactivate and Activate the Record Producer between the Date range

dileep0146
Tera Contributor

Hi All,

 

I have a requirement that I need to make the Record Producer Active from Nov 1st and Deactivate the RP on Nov 19th.

 

Do I need to any scheduled script here or any option is available to make the record producer active and inactive between the dates

 

Please suggest

 

Thank you

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@dileep0146 

yes you will require either scheduled job or scheduled flow which runs on 1st Nov which will activate

Another scheduled job or scheduled flow which runs on 19th Nov which deactivates

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Ehab Pilloor
Giga Sage

Hi @dileep0146,

 

You can make 2 scheduled jobs and activate/deactivate it.

 

Schedule it for particular dates as mentioned and let it get executed automatically.

 

Please Accept this response as Solution if it assisted you with your question & Mark this response as Helpful.

 

Kind Regards,

Ehab Pilloor

Hi @Ehab Pilloor ,

 

Thanks for your reply.

Ankur Bawiskar
Tera Patron

@dileep0146 

Another way is to use "Available for" user criteria related list and create your own user criteria

Use script in that and check if today's date is between 1st and 19th Nov, if yes then set answer=true/false

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader