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 365 | Integration, Dataverse...
Suggested Answer

How to convert into asynchronous call

(0) ShareShare
ReportReport
Posted on by 110

'XrmServiceToolkit.Soap.RetrieveEntityMetadata' makes a synchronous server interaction. It is recommended that you convert this to an asynchronous call or utilize an API that makes an asynchronous call instead.

We are getting the above issue please suggest the required method !!

Thanks!!

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

    Hi Tipu,

    I'm unfamiliar with XrmServiceToolkit library. However, I check the description of 'XrmServiceToolkit.Soap.RetrieveEntityMetadata' function:

    var retrieveEntityMetadata = function (entityFilters, logicalName, retrieveIfPublished, callback) {
    ///
    /// Sends an synchronous/asynchronous RetreiveEntityMetadata Request to retrieve a particular entity metadata in the system
    ///
    ///Entity Metadata
    ///
    /// The filter string available to filter which data is retrieved. Case Sensitive filters [Entity,Attributes,Privileges,Relationships]
    /// Include only those elements of the entity you want to retrieve in the array. Retrieving all parts of all entities may take significant time.
    ///
    ///
    /// The string of the entity logical name
    ///
    ///
    /// Sets whether to retrieve the metadata that has not been published.
    ///
    ///
    /// The function that will be passed through and be called by a successful response.
    /// This function also used as an indicator if the function is synchronous/asynchronous
    ///

    This function has a param named callback to indicate this is synchronous/asynchronous. So if you want to make it asynchronous please add this parameter to have a try.

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 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 93

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans