Posts

Showing posts with the label webapi

HOW TO CONNECT TO DYNAMICS 365 ENVIRONMENT USING POSTMAN TO DO WEBAPI CALLS

Image
As a developer, you normally use Console Application, JavaScript, or plugins in XrmtoolBox in order to test specific requests to make sure they are working as expected. However, and since the introduction of the Web API in Dynamics 365, there are some tools that you can use to consume the needed WEB API requests against Dynamics 365 environment. My preferred tool to use is Postman, and this is our topic today where we will learn how to connect Postman to Dynamics 365 environment and consume the desired operations like create, update... in order to quickly test and accomplish them. First, you have to create an App Registration in Azure and enable its options as explained in this post to be able to connect to Dynamics 365 environment through Postman using the OAUTH authentication Open Postman, a...

DYNAMICS 365 HOW TO CREATE AND MANAGE POLYMORPHIC LOOKUP ATTRIBUTE IN WEBAPI

Image
Previously, we saw how to create a Polymorphic Lookup Attribute using the Polymorphic Lookup Manager plugin and how to create a Polymorphic Lookup Attribute using SDK In this post, we will see how to create a Polymorphic Lookup Attribute using WebAPI . We will see as well, what are the different actions that can be done against a polymorphic lookup attribute using this method. In order to apply these actions, I will be using Postman to call the needed APIs requests First, you have to create an App Registration in Azure and enable its options as explained in this post to be able to connect to Dynamics 365 environment through Postman using the OAUTH authentication ...

DYNAMICS 365 HOW TO RETRIEVE AND EXECUTE PREDEFINED QUERIES

As you know, System views are available to all users, while, the Personal views are available to only the users who created them and the users these views are shared with. Both of these are called Predefined queries and can be retrieved and executed using WebAPI. System views are the system defined views and are contained in the entity named SavedQuery Personal views are the personal views and are contained in the entity named UserQuery You can use the following WebAPI calls to execute the predefined queries: System views : https://<OrgUrl>/api/data/v9.0/account?savedQuery=<SystemViewId> Personal views : https://<OrgUrl>/api/data/v9.0/account?userQuery=<PersonalViewId> To get the...

LIMITATION NUMBER OF ALLOWED LINK ENTITY IN QUERY

Image
In this quick post, I will talk about a limitation you might face when working in D365 CE which is exceeding the maximum number of link entities in a query . The exception message that you will receive is the following: Error : Number of link entities in query exceeded maximum limit. where the maximum number of link entities is 10. You get this error in different scenarios In a view when you add fields of more than 10 related entities because they are reflected as link entities with outer join to the main entity <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">......... <Message> Invalid FetchXml on SavedQuery.Update. </Message>......... ...