Need to let users update reason of retirement when retiring a knowledge article.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
We have a user defined field ( Reason for Retirement) on the Knowledge article form. Currently we implement an automated script where, whenever the 'Valid to' date of the KB article is breached, and the State is not Outdated, the script marks the State to Retired and updates the Reason for Retirement field with a defined value. Even if users update the reason, it gets overwritten when the script gets executed.
The requirement now is that, whenever users retire the articles by themselves and update the reason, the script should not update the reason for those articles.
Can someone please provide a possibile solution for this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
When an article is retired by user, set a flag in any of the not used fields using BR and during execution of the automated script, check condition if the flag is true, do not update the reason for retirement. If flag is empty, set the value from the script.
The flag can be as simple as checking if the custom field [reason for retirement] is NOT empty, do not use the script to update the reason for retirement field and if empty, update it.
If this helped to answer your query, please accept the solution and close the thread.
Thanks,
Bhuvan