Error Message when Related Action is no longer visible

Certified Senior Developer

I have a related action accessible to a number of users. The action will be hidden upon execution. If two users open the summary page at the same time, the first one to click it will be able to execute the action. Although the action is still visible on the second user, he/she will now get  "An error Has Occurred. The specified <RECORD> related action does not exist or you do not have permission to view it".

Is there a way to handle this error to provide a better message?

Thanks.

  Discussion posts and replies are publicly visible

Parents Reply
  • Hi Pramod, this is my workaround:

    1. I hide the Related Actions Tab in the Record
    2. I set the visibility of the related actions to true in the record object
    3. I used recordActionField to display the action in the interface. I have an expression to determine which record action should show up.
    4. In the process model, I checked if the action is still valid before executing the rest of the nodes. If no longer valid, I display a prompt to show that someone updated the request and then refresh the summary page.

Children
No Data