Migrate schedule job script to scheduled flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2025 09:36 PM
How can we convert below schedule job script logic into scheduled flow.
Scheduled JOB Which run Daily:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2025 10:00 PM
Hi @User712413 ,
What have you tried so far for your Flow?
Sandeep Dutta
Please mark the answer correct & Helpful, if i could help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2025 10:16 PM
I am just trying to break down into flow logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2025 10:13 PM
Hi @User712413 , please try these steps and let me know how it goes.
-->Try to have a flow built on change_task table that runs as per your defined frequency(daily/monthly/periodically/once) and conditions as Active= true, AssignedTo is nor empty
-->Create a custom action that calculates the age of the task, supply the task created date as input and the action should perform the duration calculation and return if its recent/moderate/Old/Skip.
--> In the same action, add a script that groups the tasks based on user and return that in the action output.
Sample script
-->Use a scriptable Flow Action/Subflow to group tasks by user and category and Build a JSON object like
--> Use OOB Send Email action
- Loop through each user in your grouped data
- Send the JSON summary as part of the email or event payload
Thanks,
Pavan BV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2025 10:53 PM
if you are using complex script then you will have to use flow action for this
where are you stuck?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader