Category: C#
-
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.
-
Parsing JSON in C#
JSON is commonly used in C# for data interchange. The Newtonsoft.Json library offers a simple API for parsing JSON data into C# objects. Alternatively, System.Text.Json in .NET Core 3.0 provides built-in support. Choose the method that suits your project’s needs for robust JSON parsing in C#.