Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

CRM entity updates and API calling

Posted on by Microsoft Employee

I am investigating an issue but am not that au fait with the inner workings of Dynamics CRM. So any help/advice appreciated.

We have an internal system that, on making a change to a type/field then invokes a change to the relevant entity/field in CRM. Upon this change in CRM (for certain fields) an API is called thats purpose is to replicate this change to a web application.

This API essentially retrieves an object from cache (original), and the object from CRM (new)... and for any differences it will update the cache object and update other related records.

The latter is not working and logging reveals that at point of retrieving the entity field (that i believe should have been updated) it is still set to the "original" value hence the program does not carry out any updates.

I havent done the development within CRM thats calling our API, so have little visibility, but shouldn't the CRM fields be updated instantly?

What is the best way of calling an API from CRM and guaranteeing that all CRM updates have been done prior to the API call?

As the API only fires on certain CRM field changes it is "seeing" a change in the CRM, presumably a database change triggering this?

Interrogating the CRM and field post crm plugin completion the entity is updated correctly, but seemingly not at the time of the API method call.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans