No ratings

How to customize the error message when a user opens a task that has been actioned


Symptoms


When an end user opens a task that has been actioned the below error is seen. This is common with Task that get assigned to multiple destinations but only requires one or more to action the item to complete it. Developers might want to replace this OOTB message with something more user friendly.


 


8101i650095E68D0BF7D3.png

 


 

 


Solution



    • Find the Form used for the task as well as the form state the task uses.

    • Edit the form > Ensure you select the STATE used by the Workflow Task Event and edit the “When the Form is Initializing rule”


8102i0A99D51F6BB9468E.png



    • When the form is Initializing there is a check if the current workflow activity is a specific activity this is where it will fail if a user opens a task that has been actioned. Directly underneath that rule add the following.

    • Condition > Error occurred

    • In the condition add an Action > show a message to the user

    • Below this add Acton > stop rule execution


8103iF1181442735D7044.png


With this configuration the OOTB Error message will not be shown and instead it will show the message configured and is fully customizable.


 


8104i3EE8AF51EDBB2FBB.png

Labels: (1)
Comments

Hello,

 

In case the task is allocated to some other person, can we display to whom is it assigned to?

This will help if a team is working on something & some other person in the team wants to take control of that ticket/request (SN).

 

Rgds,

Nirav

If I'm not mistaken, any error that occurs when the form initializes will get picked up by this event. It seems a little dangerous to catch all errors and assume they are because the task has been picked up already.

Hi   @dustinaleksiuk,

 

We can filter out with error message code '24411' to filter out such errors.

Version history
Last update:
3 weeks ago
Updated by:
Contributors