web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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?

(0) ShareShare
ReportReport
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?

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator 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, ...)

  • Abhiram Thulasi Profile Picture
    2 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

  • Leco Lv Profile Picture
    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?

  • bp3378 Profile Picture
    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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 61 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 52 Most Valuable Professional

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 52 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans