views:

53

answers:

1

Is it possible to override the default error message in CRM 4.0 that occurs if a workflow fails? Is it recommended against doing so? This seems like the best spot for a remote, non-technical user to read a simple error message that any custom workflow activity has thrown. I would imagine the code extension point for this is overriding the HandleFault method of the Activity base class.

protected override ActivityExecutionStatus HandleFault(ActivityExecutionContext executionContext, Exception exception)
{            
    return base.HandleFault(executionContext, exception);
}

Here is the default (aka the "always-there-but-no-one-reads-it" text): alt text

A: 

It is possible, yet not supported, to change the form of asyncoperation to show the message field, see link below. A supported way is to do an advanced search and include this column. I will take the latter approach for now.

http://nishantrana.wordpress.com/2010/05/04/getting-the-error-messages-for-custom-workflow-activity/

Henrik