Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Retrieve Entity EntitySetName from Entity DispayName in Javascript

(1) ShareShare
ReportReport
Posted on by 81

Dear Experts ,

I am trying to retrieve the EntitySetName from its Dispaly name using Webapi call, below is the query i am using which is giving the error.

Query:

 Xrm.WebApi.retrieveMultipleRecords("EntityDefinitions", "?$select=DisplayName,EntitySetName&$filter=DisplayName eq Microsoft.Dynamics.CRM.Label'person'").then(

Error.

"The string 'Microsoft.Dynamics.CRM.EntitySetName.LocalizedLabel.Label'person'' is not a valid enumeration type constant.".

CRM Version :- D365 v9.0

any help will me appreciated.

Regards

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,615 on at
    RE: Retrieve Entity EntitySetName from Entity DispayName in Javascript

    Looks like this wont work.

    "This pattern works with BooleanManagedProperty ComplexType because the primitive value to check is one level deep. However, this does not work on properties of Label ComplexType."

    docs.microsoft.com/.../query-metadata-web-api

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans