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
  • 0
    Certified Lead Developer

    What logic are you using to hide the related action from the second user to click it?  Instead, something I've done successfully in the past is allow the user to click it if they still see the link/button, and do that logic in a gateway early on in the process.  If it fails, route them to an alternative task explaning that the action is no longer available, and upon clicking the submit button they'll be routed cleanly back to the related action list / record dashboard they started from.

Reply
  • 0
    Certified Lead Developer

    What logic are you using to hide the related action from the second user to click it?  Instead, something I've done successfully in the past is allow the user to click it if they still see the link/button, and do that logic in a gateway early on in the process.  If it fails, route them to an alternative task explaning that the action is no longer available, and upon clicking the submit button they'll be routed cleanly back to the related action list / record dashboard they started from.

Children
No Data