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

Javascript getwebapi method bring result

(0) ShareShare
ReportReport
Posted on by 828

I want to know what's the difference b/w result and result.value.length.

when i do getWebApi and collect result. I am getting everything. but with result.value  i am getting error value not define. But my all colleague doing result.value and their code in their JS working fine. wanted to know whats the basic difference b/w 2.

  • Suggested answer
    yanoh Profile Picture
    yanoh 155 on at
    RE: Javascript getwebapi method bring result

    Hi Ravi,

    Did you still met this issue? If you already resolved this question, please mark above answer verified.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,961 Moderator on at
    RE: Javascript getwebapi method bring result

    Hi,

    When you use Xrm.WebApi you should use result only. See below link.

    docs.microsoft.com/.../retrieverecord

    However, when you use XmlHttpRequeust to call web api, syntax to get field from response will be different. See below link.

    docs.microsoft.com/.../query-data-client-side-javascript

    Please mark my answer verified if i were helpful

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans