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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Javascript Dynamic Query

(0) ShareShare
ReportReport
Posted on by 30

Hello community,

I've been tasked with an assignment that requires me to query lookup fields from an entity form dynamically.

OData2 requires the entity type to be case sensitive yet the entity type i get from the field is always lower case.

is ther anyway to query CRM from javascript using the lowercase entity name?

this must work on both 2011 and 365 v9

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    you will need to query the metadata first in order to get the Schema Name (case sensitive) and after build your query.

    you specified that needs to work also in crm 2011, keep in mind that the endpoint to query is different from 2011 to v9, so based on crm version (that you can verify by checking certain properties for example) you need to use the 2011 endpoint or use Xrm.WebApi (where you don't deal with the schema name)

    hope it helps

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans