Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

plugin is triggered by workflowaction - how to handle exception in plugin

$
0
0

Hi Community!

I have a complicated situation.

On a form on entity A in CRM 2016 a workflowAction is triggered by clicking on a ribbon-button (via javascript)

In this workflowAction an entity B (totally different type) is updated. On this entity a plugin is registered (only on update). This plugin itself calls a webservice. If webservice-call fails the first workflowaction has to handle this but shouldn't throw an error.

If i throw an InvalidPluginExecutionException in plugin for entity B if webservicecall fails I get "There is no active transaction....." 

I also need the failed message the webservice returns, to show what happened, to the user.

How can I handle this?

thx in advance

©a-x-i


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images