Tag: Csharp

  • 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 – Connect to CRM with C#

    The recent release of the Microsoft.PowerPlatform.Dataverse.Client introduces the ServiceClient class, offering a modern approach to connect to Dynamics 365 web service. It supports .NET Core and .NET 5, utilizing Microsoft.Identity.Client for improved security, performance, and reliability compared to the CrmServiceClient class. This advancement enhances developer proficiency and potential.

  • 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#.

  • Formatting DateTime in C#

    This post delves into C# programming’s DateTime formatting tools, including ToString() method, String.Format(), culture-specific formatting, and composite formatting. Whether preferring simplicity, flexibility, or multi-culture support, C# offers diverse options for formatting dates and times. The exploration encourages experimentation to find the optimal approach for specific requirements.

  • C# Formatted String

    In C#, strings can be formatted using String.Format method or interpolated strings. The former uses placeholders like {0} and {1}, while the latter directly embeds variables using the $ symbol. Both methods allow for dynamic string creation and are useful in different scenarios.

  • Understanding Azure Function NCRONTAB Expressions

    Azure Functions offer a serverless compute service for on-demand code execution without managing infrastructure. Key to this is scheduling with NCRONTAB expressions, specifying minute, hour, day, month, and day of the week. Examples show triggering functions every hour, at specific times, and on specific dates. Mastery enables automated business-specific functions.