Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Why can't I do a xrm.webapi call to the same table that I am currently working in?

Posted on by 190

So the form i am working in is in TableA, and the script which has a webapi call using Xrm.WebApi.retrieveMultipleRecords("TableA".....

I add this script in even hadler of the form in TableA.  But it doesnt seem to work.  But when i connect to a different table it works.  Is there a restriction that does not allow me to connect to the same table that I am currently working in?

  • bp3378 Profile Picture
    bp3378 190 on at
    RE: Why can't I do a xrm.webapi call to the same table that I am currently working in?

    Thanks, you are probably correct.  I had to do a different alternative method so I dont need to call api into this table again.  Thanks

  • Leco Lv Profile Picture
    Leco Lv on at
    RE: Why can't I do a xrm.webapi call to the same table that I am currently working in?

    Hi partner,

    Would you like to share the details of the script and the requirements you want to implement?

  • Abhiram Thulasi Profile Picture
    Abhiram Thulasi 222 on at
    RE: Why can't I do a xrm.webapi call to the same table that I am currently working in?

    Hi,

    There aren't any such restrictions. We are allowed to fetch data using web API from the same entity.

    A possible reason for failure may be - incorrect references or values used in the script.

    Please share more details if you still need assistance

    Regards,

    Abhiram

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Why can't I do a xrm.webapi call to the same table that I am currently working in?

    there isn't a limitation on working on the same table, check that your script works correctly (like correct table name, correct columns, ...)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans