How to hide the info message for Change Request - Approval - Risk approvals?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 02:41 AM - edited 09-27-2024 02:41 AM
As per subject I have configured a Business Rule where a user cannot be approving for both the Technical Approvals and the Risk Approvals.
The Business Rule is working as expected except for this info message which is I am unable to get rid of.
Have tried the gs.flushMessages() but somehow its not working
Any idea how to fix it? The info message is due to the UI action - Approve and its a high priority file type so I do not want to modify it..
The message is triggered by the OOB script includes - ApprovalUserFeedback
current.state='approved';
current.update();
new ApprovalUserFeedback().approved(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 04:17 AM
If you don't want this info message to display when approving a change request, you can copy the UI Action, adding to the condition for your version to only show on approvals for change request records, then add the opposite to the condition of the original so that both don't appear.
The Script of your version will call a copy of the ApprovalUserFeedback Script Include which you can customize to omit the info message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2024 02:32 AM
thank you for the reply..
if I understand correctly, are you saying that I need to create a duplicate copy of the UI action with customized logic and use it to replace the OOB UI action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2024 04:55 AM
Yes, so find the correct Approve action, out of the 2 records with this name on the sysapproval_approver table that are a Form Button in the Global app - or maybe you have more or less, change the Name slightly temporarily, then add to or replace part of the condition with
current.source_table=='change_request'
then Insert and Stay. Check an approval for a Change to see if you now have 2 buttons, then you know you copied the correct one, then you can add to the condition of the original
current.source_table!='change_request'
and continue customizing your version of the UI Action