locked
CRM 2013 - InvalidPluginExecutionException for prevalidation while creating Quote from Opportunity RRS feed

  • Question

  • Hi,

    We currently have quotes being generated directly from an opportunity in CRM (which as I understand it is calling the GenerateQuoteFromOpportunityRequest message). We have a requirement to perform some pre-validation checks in a plugin on the creation of a quote which is working fine and will prevent the quote from being created when triggered from an opportunity.

    What it doesn't do is show the error message being triggered from the plugin, it just fails to create the quote. And giving message in bottom right corner that, "ISV Code aborted the operation".

    So as per my observation InvalidPluginExecutionException is not working in "Create" of Quote. We have registered this plugin with "Create" message for Quote. We have another plugin which is registered as "SetStateDynamicEnity" message for Order entity and in that we are throwing message using InvalidPluginExecutionException and its working fine.

    Is anyone aware of how we can throw an error message from the plugin when creating a quote from an opportunity?

    Thursday, November 6, 2014 5:59 AM