Retire knowledge based on valid to date
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 04:26 AM
Hi, I'm trying to create a workflow to retire knowledge articles which have reached the valid to date. I'd like the workflow to be triggered by the valid to date, once it has reached that date the article would move to pending retirement and create an approval request for a group, then once approved move to retired.
I've got the workflow sorted from the approval onward. It's the script at the beginning to begin the flow that I can't figure out, would anyone have any recommendations?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 05:44 AM
Hi,
in your case I would recommend to use a scheduled flow trigger (daily or weekly, maybe even more frequently depending on your needs).
You can then query all records where the date is in the past or on today and loop over these records.
Then do your retirement logic and you should be good to go.
I hope you find this helpful