Posts

Showing posts from October, 2021

How to hide/show the button based on security role using ribbon workbench in dcrm?

  function hide(primaryControl) { debugger;         var formContext = primaryControl;         var userSettings = Xrm.Utility.getGlobalContext().userSettings.securityRoles;         var roleId = "7b00263756-A437-EC11-8C64-000D3AF0478E";                  roleId = roleId.toLowerCase();                for (var i = 0; i < userSettings.length; i++) {             var userRoleId = userSettings[i];             if (userRoleId == roleId) {                 // Return true if the Role matches                 formContext.ui.tabs.get("DETAILS_TAB").setVisible(true);                 alert("successfully tab show");                 return true;             }         }         formContext.ui.tabs.get("DETAILS_TAB").setVisible(false);          alert("successfully tab hide");         return false; }

Simple Plugin Program For Trail

  1.) using Microsoft.Xrm.Sdk; using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 {     public class Class1 : IPlugin     {         public void Execute(IServiceProvider serviceProvider)         {             ITracingService tracingService =                  (ITracingService)serviceProvider.GetService(typeof(ITracingService));             IPluginExecutionContext context = (IPluginExecutionContext)                 serviceProvider.GetService(typeof(IPluginExecutionContext));             if (context.MessageName != "Create")                 return;             if (context.InputParameters.Contains("Target") &&                   context.InputParameters["Target"] is Entity)             {                 Entity entity = (Entity)context.InputParameters["Target"];                 if (entity.LogicalName != "account")          

How to setup Microsoft dynamic CRM trail instance?

Image
How to setup Microsoft dynamic CRM trail instance? Ans:  Step 1:  Copy the and paste in new tab in browser link  https://dynamics.microsoft.com/en-us/dynamics-365-free-trial/ step 2:  Now click on which module you want to take trail version like sales, services, finance and operation, Commerce etc. Here I am taking sales module DCRM 365 trail. click on try for free. Step 3: Now you will get below screen  Now before filling the work email id click on the start your free trial. You will get screen like below. Now click on click here to set up a new trial account. Step 4: You need to fill the details like your work email id and click next it will be showed like you are already using another Microsoft service then click on the Create A New Account Instead. Step 5: Fill the all details like first name, last name, Company name any random one, region company name etc. and click on next. then do verification, check the domain name available and fill the user name and password click on sign up