Provider notification for approvals

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 09:57 AM
I have added a provider notification to let users know when they have an approval request in the NextUI. This works great. However, I want to remove the notification automatically when the approval has been approved, is no longer required (another user has provided approval for the same record) or cancelled as at that point, that notification is just noise.
I wrote a business rule that sets the notification record to 'Deleted' (same as what happens when the user clears the notification) when approval is no longer needed for any of the above reasons, which *almost* does the trick except that the notification isn't cleared from the user's list unless the user reloads their browser.
How can I automatically remove the notification from the user's list when approval is no longer needed? Is this something that could be handled by a notification action? I have not been able to find any good documentation on the purpose of provider notification actions, so am unsure if I should be trying to leverage that or not.