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 :
Service | Customer Service, Contact Center, Fie...
Unanswered

Delay in update data for Retrieve WEB API service when compared with the solution plugin data triggered for update event.

(0) ShareShare
ReportReport
Posted on by 5

From initial investigation it seems that when we update a description field for incident entity , event is fired by solution Plugin . But it seems that DCRM takes time to update the value in backend database due to which when we retrieve (using WebAPI) the updated field as soon as we receive update event message, we get older values.

The issue is seen in Incident (case) entity for description attribute and in plugin registration tool we added the step "DynamicsCRM.Plugin.EventListenerPlugin: Update of incident" and event pipeline stage is "post-operation" and "synchronous" mode.

In the solution Plugin code, im using Target from InputParameters to fetch for updated values and for older values we use pre-entity image data.

Why there is  a delay in update for some attributes as mentioned above for "description in incident entity"  for Event pipeline framework and Web API service. Though the delay might by in milli-seconds , we need the data to be uniform across all the services.

I have summarized my questions as below. Please answer them.

  • Am I missing out any thing to check in solution plugin code which gets triggered before the commit of data? Please let me know.
  • Can you also please confirm, if the post-operation triggered only after commit operation of data for plugins?
  • And also there is no data coming for context Output parameters object for update event . How can I confirm if the data is committed and if I only depend on the context InputParameter Target value.

NOTE: Below issue is seen Dynamics 365 Online server only non in On-Premises Dynamics 365 server.

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi ShivaKumarN,

    Maybe you can update code to make synchronous calls web api.

    And you can refer following link to start Performance tuning and optimization:

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/admin/performance-tuning-and-optimization

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • ShivaKumarN Profile Picture
    5 on at

    Hi Leah Ju,

    Thanks for your reply.

    Regarding Performance tuning and optimization , I don't think I'm running high intensity requests to the server .

    I just updated one record for few fields like "description,title etc.," are updated from DCRM Online server, the plugin gives the updated values but from Web API Retrieve request the updated values for incident entity are not reflected and they show up having older value for few seconds.

    When data is committed to database , it should be uniform through all the services right.

    I'm finding difficulty to understand why there is a data lag and showing up older value for few seconds between WEB API REST HTTP requests and  plugins(solution)

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 49 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans