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.

  • ShivaKumarN Profile Picture
    5 on at
    RE: Delay in update data for Retrieve WEB API service when compared with the solution plugin data triggered for update event.

    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)

  • Community Member Profile Picture
    on at
    RE: Delay in update data for Retrieve WEB API service when compared with the solution plugin data triggered for update event.

    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.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans