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

8 REPLIES 8

Hi @Ankur Bawiskar ,

I have one small query, I need to activate the record producer on October 19th 12:00AM and the same should deactivate on October 31st 12:00AM on France/Paris time zone.

 

In the flow properties, I have used Run As as System user, Could you please check the screenshots attached and confirm this flow will trigger exactly at the mentioned dates or any change is required.

 

Currently, i have scheduled the flows based on UTC time zone and the screenshot shows the flow will trigger on October 19th 12:00AM France/Paris time zone and also the other screenshot shows the flow will trigger on October 31st 12:00AM  France/Paris time zone..

Could you please check and confirm.

 

 

 

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