Skip to main content

Posts

Showing posts with the label CRM

Retrieve 5000+ Records in Dynamics 365 CE using CRM OData, Fetch XML and C#

If you want to retrieve 5000+ records in Dynamics 365 CE, you need to make use of Paging concept of CRM. By default 5000 records are retrieved in a single OData call in CRM. To get more, you need to make subsequent calls to OData Endpoint by passing a paging cookie in the request. I will be using a simple C# Console Application to retrieve 5000+ records from Dynamics 365 CE, by making use of OData API Endpoint provided by CRM and passing Fetch XML in OData Call . Concept: CRM OData Endpoints allows us to use Fetch XML to retrieve data from Microsoft Dynamics 365 CE.  If your resultset has more than 5000 records, you will be returned with first 5000 records ONLY in one OData call. To know if the resultset has more than 5000 records, we make use of the response from OData call. The response is added with a cookie value contained in a key - "@Microsoft.Dynamics.CRM.fetchxmlpagingcookie" If you wish to fetch the next set of resultset data, you will have to pass this c...

Registering Service Endpoint for Azure Service Bus Topic in Microsoft Dynamics 365 CE

I will be using Plugin Registration tool to register Service Endpoint for Azure Service Bus Topic in my trial Microsoft Dynamics 365 CE Instance. Here are the steps to you need to follow: Step 1. Login to your Microsoft Dynamics 365 CE instance using plugin registration tool. Step 2. Once logged in, Press “Ctrl + E”, or from file menu, go to Register -> Register New Service endpoint. Step 3. Enter your Azure Service Bus Connection String in the shown popup, and click OK. Step 4. You will be presented Service Endpoint Registration popup, where you need to enter following details: Name: ASB Topic Endpoint (a friendly name to your service endpoint) Designation Type: Topic Topic Name: test_internal (enter your ASB Topic Name here) Message Format: JSON (can be .NET Binary, and XML as well) User Information Sent: None (can choose to pass on User ID as well) After entering these details, click on Save. Step 5. The Service...