Posts

How to read JSON format data

Image
  How to read JSON format data: Write a plugin code:   using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xrm.Sdk; using Newtonsoft.Json;   namespace Shared_variables {        public class jsonData : IPlugin     {         public   string fullName;         public string email;         public string rejectReason;           private string _secureConfiguration;         private string _unsecureConfiguration;         public jsonData ( string unsecureConfiguration, string secureConfiguration)         {             _secureConfiguration = secureConfiguration;             _unsecureConfiguration = unsecureConfiguration;         }           public void Execute(IServiceProvider serviceProvider)         {             // Obtain the execution context from the service provider.                    IPluginExecutionContext context = (IPluginExe

Connect Dynamics 365 in Console Application using Application Registration and Application User

Image
  Dynamics URL:   https://azure.microsoft.com/en-in/get-started/azure-portal https:  https://portal.azure.com/#home Steps in Microsoft Azure Navigate to portal.azure.com and login. Navigate to  Azure Active Directory  >  App Registrations  >  New Registration Register your Application. Enter an  Application name. Select which account types you wish to access this API. Click  Register. Copy the Application (client) ID and note it for later use. Create a new Client Secret for the Application. Select  Certificates & secrets  >  New Client Secret Enter a description, select an expiry duration and click  Add . Copy the client secret and note it for later use.   Make sure to copy the  Value  field, as below. Grant Microsoft Dynamics permissions. Select  API Permissions  >  Add a Permission  >  Dynamics CRM Select the checkbox for user_impersonation. Click  Add permissions . Steps in Power Platform admin center Login to https://admin.powerplatform.microsoft.com/environments