Automate an annual ticket on the incident table for the 1st of April every year with an attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 02:13 AM
Hi, I have a requirement whereby I need to create an annual record on the incident with an attachment for a particular day for example the 1st of April. What is the best way to achieve, any examples would really help too.
Thank you in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 02:56 AM
HI @Abu5
You can do this via Flow Designer. or via schedule job as well. But i will recommend for Flow, as it is low code.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 04:11 AM
Thank you for your prompt reply. I have attempted this using a flow however I cannot set a date. I need a start date of 1st of April then every 1st of April after that. I believe the trigger "repeat" uses todays date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 04:36 AM
Hi @Abu5
Yes, there is no way to fix that, either you can put day 365 and then it work or every year change or use the run once and with fix date.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 05:28 AM
Hello Abu
- Create a scheduled job which runs 'Monthly' and Day '1'.
- To ensure it only runs on 1st April use this for the Condition:
- Use this script:
var inputs = {};
var contextId = sn_fd.FlowAPI.startSubflow('global.subflow_name', inputs);