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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans