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)

Getting problem in building a query

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to build a query in dynamic 365 CRM using a web API which gives a result for the attributes those are creatable only.

Currently, I am using a query which expands attributes for the particular entity and gives all attributes in response.

The query is:: EntityDefinitions(LogicalName='account')$select=LogicalName&$expand=Attributes($select=AttributeType,LogicalName,IsValidForCreate).

please help me to find the out the query which gives attributes those value for IsValidForCreate property is 'true'

Thanks,

Ankit

*This post is locked for comments

I have the same question (0)
  • gdas Profile Picture
    50,091 Moderator on at

    Hi Ankit,

    Please have a look below article  , it may helps you -

    apycrm.blogspot.com/.../meta-data-using-webapirequest.html

  • Verified answer
    Rhett Clinton Profile Picture
    Moderator on at

    You can query for attributes on IsValidForCreate using this query.

    /EntityDefinitions(LogicalName='account')?$select=LogicalName&$expand=Attributes($select=AttributeType,LogicalName,IsValidForCreate;$filter=IsValidForCreate eq true)

    You can find more information on querying metadata here.

    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

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