Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have a complicated situation.
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
"message":"All done!"//Your data it's wrong, no authorized, etc.
thank you for your reponse.
The problem is, that I don't want to save entity B if the webserviceCall wasn't successful. So an exception is the only way to trigger a rollback.
The web service call executes first before you update entity B. Before you execute the update, you can check first the response code of the web service, if the code is not "200" means there is an error encountered. So instead of proceeding with the update, save the web service response to other entity which the user can check.
Business Applications communities