Posts

Basic Plugin Code in D365 using C#

 using System; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xrm.Sdk.Messages; using Microsoft.Xrm.Sdk.Metadata; namespace  apy.CWA.Arcese.Security {     public class PostOperationCreateQuote : IPlugin     {         public void Execute(IServiceProvider serviceProvider)         {             ITracingService tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));             IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));             IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));           ...

FROM Date and Time should not be greater than TO Date and Time using JavaScript

 var flagDropOffFromdat = true; function dropOffFromdate(executionContext) {     var formContext = executionContext.getFormContext();     var dropoffFrom = formContext.getAttribute(" apy_dropoffdatetime").getValue();     if (dropoffFrom != null && dropoffFrom != undefined && dropoffFrom != "") {         if (formContext.ui.getFormType() === 1 && flagDropOffFromdat === true) {             //setTimeout(function () {             var nowUtc = new Date(dropoffFrom.getFullYear(), dropoffFrom.getMonth(), dropoffFrom.getDate(), 0, 0, 0);             formContext.getAttribute(" apy_dropoffdatetime").setValue(nowUtc);             formContext.getAttribute(" apy_dropoffdatetimeto").setValue(nowUtc);             //}, 1000);              ...

Bing Map Enablement for Address in D365

Image
  Bing Map Enablement for Address     1.      Login to D365   URL:  https://*****.crm8.dynamics.com/ User Name:  demo@******.onmicrosoft.com password:  *****@   2.      Go to  Settings  > Administration > System  Settings and Enable Bing Maps       Go to Account Main Form> Enter the correct Address fields on account form Click on “Click here to view Map” link it will navigate to Bing Map     Another approach with HTML Web Resource 1.        https://docs.microsoft.com/en-us/bingmaps/v8-web-control/creating-and-hosting-map-controls/creating-a-basic-map-control Create a Bing Maps Account and Get a Key Created key is: 'ArlJ8KQ2GPy3dXJaHDyaGxIl-i_Aj16jPacSiefxLEtynj1XgLo_FbLgZsAfabRC' 2.        Go to Solution>Account > Account Form> Main Form edit...