Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

How to Fetch Only Sales Entities and Custom Objects Using Dynamics 365 Web API?

(1) ShareShare
ReportReport
Posted on by

Hi everyone,

I’m using the Dynamics 365 Web API to fetch entity definitions by calling:

GET [Organization URI]/api/data/v9.2/EntityDefinitions

This returns 1,400+ records, but I only need to retrieve:

1. Entities related to Dynamics 365 Sales.

2.Custom entities created by users within Sales CRM

I have tried:

•Filtering with IsCustomEntity eq true, but this returns all custom entities across all apps, not just Sales.
•Checking SchemaName and LogicalName manually, but there’s no clear indicator that an entity belongs to Sales.
•Exploring SolutionComponents to determine if an entity belongs to the Sales solution, but this requires extra API calls.

 

My Question:
👉 Is there a way to directly filter or query only Sales-related entities (both standard and custom) using the Web API?
👉 Is there an attribute in EntityDefinitions that specifically indicates an entity is part of Sales CRM?
👉 Are there any best practices to determine if an entity is associated with Sales without excessive filtering or multiple API calls?

Would appreciate any insights or workarounds! 🚀 Thanks in advance!

 
Categories:
  • Aymen CHELBI Profile Picture
    on at
    How to Fetch Only Sales Entities and Custom Objects Using Dynamics 365 Web API?

    Hello

    Try this approach :
    1. Use logical naming conventions to filter entities, such as "account", "contact", "opportunity", etc., that are standard in Sales CRM.
    2. Use the IsCustomEntity filter for custom entities and the SolutionComponents API to identify Sales-related entities within the Sales solution.
    3. There is no direct flag in the EntityDefinitions API indicating Sales CRM-specific entities, but combining these methods can help you narrow down the results efficiently.

    Best regrds,

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa Moderator

Leaderboard

Product updates

Dynamics 365 release plans