
In capturing opportunities is the subgrid quote.
I create a plugin that runs when a new quote is created the opportunity that adds the value of the contributions of that opportunity and I assign that value to a field that I believe. As more quote created my plugin updates the total value of contributions.
My problem is when I created a plugin that runs when a quote of subgrid is eliminated. when you are running the plugin that runs correctly on the screen but does not update the value of the custom field. This case is not presented with the plugin to create or update these if the value updated immediately.
*This post is locked for comments
I have the same question (0)Hi jandresd,
The above is expected behaviour if your plugin is running on Post Validation or Post-Operation, as the database record would be deleted by this stage and, therefore, your field would no longer be available to access.
To get around this, you can look at setting up your plugin to execute on Pre-Operation or configure a Pre-Image of your entity as part of your Delete request step on your plugin. You can configure the Pre-Image to include the fields you require and they will be available to access in your code.
Hope this helps!
Thanks
Joe