Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to call Metadata using Xrm.WebApi in JAVASCRIPT?

(0) ShareShare
ReportReport
Posted on by 1,088

Hi, does anyone know How to call THIS in Javascript

api/data/v9.0/GlobalOptionSetDefinitions(Name='MYATTRIBUTE')

GlobalOptionSetDefinitions

but using the object Xrm.WebApi.

Xrm.WebApi

y think its using Xrm.WebApi.execute but I don't know how.

  • Suggested answer
    Lixzh Profile Picture
    on at
    RE: How to call Metadata using Xrm.WebApi in JAVASCRIPT?

    Agree with Joana, please refer to developer.mozilla.org/.../Using_Fetch, if you have any questions, please let me know.

  • PabloCRP Profile Picture
    1,088 on at
    RE: How to call Metadata using Xrm.WebApi in JAVASCRIPT?

    Ok, I get it, Thank you  Joana and as always Andrew I appreciate your help.

  • Verified answer
    a33ik Profile Picture
    84,329 Most Valuable Professional on at
    RE: How to call Metadata using Xrm.WebApi in JAVASCRIPT?

    Hello Pablo,

    I don't think that's doable. You will have to use either XmlHttpRequest or fetch - developer.mozilla.org/.../Using_Fetch

  • PabloCRP Profile Picture
    1,088 on at
    RE: How to call Metadata using Xrm.WebApi in JAVASCRIPT?

    Hi Joana,

    I'm just creating a web resource and  just using  Xrm.WebApi.retrieveRecord or Xrm.WebApi.retrieveMultipleRecords for get records so I am aware of XMLHttpRequest for simple http request but I just wondering if its possible to call that endpoint just using Xrm.WebApi.

    thanks

  • Verified answer
    Joana Pinto Profile Picture
    740 on at
    RE: How to call Metadata using Xrm.WebApi in JAVASCRIPT?

    Hi Pablo,

    Why not build a normal HTTP request instead?

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... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans