Category: C#
-
Sending Parallel Requests to Dataverse
This post discusses the importance of sending requests to Dataverse in parallel during integration and migration projects. It highlights the advantages of parallelism, such as reduced processing time and optimal server capacity usage. The author provides coding approaches for both modern .NET and .NET Framework, while stressing key connection settings…
-
Dynamics 365 – Restore Deleted Records
The post discusses how to restore deleted records in Dynamics 365 using C#, highlighting the process of retrieving deleted records from a special “bin” datasource via FetchXML or QueryExpression. It also explains how to restore records and check if the recycle bin is enabled for specific tables, while cautioning about…
-
Dynamics 365 – Use Upsert to Create or Update Records
The content explains how to use the Upsert operation in Dynamics 365 to efficiently manage data integration without manually checking if records exist. Upsert simplifies processes by automatically updating existing records or creating new ones. It supports bulk operations, alternate keys, and offers examples in C# and JavaScript for implementation.
-
Dynamics 365 – Creating and Calling Custom APIs
Custom APIs in Dynamics 365 enable the creation of custom business logic, facilitating integration with Power Automate and external systems. This guide outlines the steps to register a Custom API in Dataverse, link it to a plugin, and configure input/output parameters. A practical example of copying user roles within Dataverse…
-
Dynamics 365 – How to Start a Plugin Project with PAC CLI
This article explains the process of quickly creating a new Dynamics 365 Plugin project using PAC CLI. It covers the installation of PAC CLI via .NET Tool, project setup, and the steps to create and deploy a plugin. Key commands and configurations for generating early bound models are also detailed…
-
Dynamics 365 – Share Records using C# | GrantAccessRequest
When sharing records in C#, use GrantAccess to specify access rights for the recipient. ModifyAccess allows modifying shared record access. Access rights vary for each user. Users cannot be given rights they don’t have. ShareRecord and ModifyAccess show examples. Use RevokeAccess to remove access rights from a shared record.