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!