web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Reload value after executing a plugin to delete message.

(0) ShareShare
ReportReport
Posted on by

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)
  • Suggested answer
    Joe Griffin Profile Picture
    1,254 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans