Skip to main content

Notifications

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

  • Verified answer
    Rhett Clinton Profile Picture
    Moderator on at
    RE: Getting problem in building a query

    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

  • gdas Profile Picture
    50,091 Moderator on at
    RE: Getting problem in building a query

    Hi Ankit,

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

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

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans