Showing ribbon button based on the result of async operation – Andrew Butenko’s Blog
Nov13

Showing ribbon button based on the result of async operation – Andrew Butenko’s Blog

var AccountRibbon = (function () {       //this variable stores if async operation was already completed     var isAsyncOperationCompleted = false;     //this variable stores the result – if button enabled or not     var isButtonEnabled = false;       function IsButtonEnabled(formContext) {         //If async operation was already completed I just return the result of...

Read More
Pass DateTime parameters to set field record values – Andrew Butenko’s Blog
Nov08

Pass DateTime parameters to set field record values – Andrew Butenko’s Blog

Today I got requirement to open new record form with prepopulated DateTime field. This article describes how to pre-set Date field: The following sample sets the Est. Close Date field for a new opportunity to January 31, 2011. The unencoded value for the extraqs parameter is “estimatedclosedate=01/31/11”. No single word about time component. Luckily I found a way to make it work…. Continue Reading Andrew Butenko’s Article...

Read More
How to make 9.0 Classic Client a bit cleaner – Andrew Butenko’s Blog
Nov07

How to make 9.0 Classic Client a bit cleaner – Andrew Butenko’s Blog

At the moment I do migration for one of customers from 8.2 ground to 9.0 cloud. I migrated all the customizations and customer was not satisfied with layout of updated classic 9.0 client. The biggest complain was related to huge whitespaces around fields. Just compare the same default forms of account entity 8.2 on the left and 9.0 classic UI on the right: Obviously there was no… Continue Reading Andrew Butenko’s Article...

Read More
How to share record with user using WebApi – Andrew Butenko’s Blog
Nov01

How to share record with user using WebApi – Andrew Butenko’s Blog

var target = { “accountid”: “ACAAB842-21C7-E811-A96F-000D3A16A41E”, //put id and Guid of record to share here “@odata.type”: “Microsoft.Dynamics.CRM.account” //replace account with other record type };   var principalAccess = { “Principal”: { “systemuserid”: “d272654b-57f5-4564-8d0b-36d0d4c426c4”, //put teamid here and Guid of team if you want to share...

Read More
How to call QuerySchedule using WebApi – Andrew Butenko’s Blog
Jul11

How to call QuerySchedule using WebApi – Andrew Butenko’s Blog

var context;   if (typeof GetGlobalContext === “function”) {     context = GetGlobalContext(); } else {     context = Xrm.Page.context; }   var start = new Date(); //Put Start datetime here   var end = new Date(); //Put End datetime here end.setDate(end.getDate() + 1);   var requestUrl = “/api/data/v8.2/QuerySchedule(ResourceId=@p1,Start=@p2,End=@p3,TimeCodes=@p4)”; requestUrl += “?@p1=”...

Read More
How to Add Item to Campaign using WebApi – Andrew Butenko’s Blog
Jun21
Read More
Email Invoice in PDF format – Andrew Butenko’s Blog
May03
Read More
Cloning record with related records with no code – Andrew Butenko’s Blog
Apr26
Read More
Copying of N-N related records with no code – Andrew Butenko’s Blog
Apr26

Copying of N-N related records with no code – Andrew Butenko’s Blog

In this post I will provide instructions how you can copy N-N related records using latest release of Ultimate Workflow Toolkit without any code. Let’s consider typical scenario – qualification of Lead. Both Lead and Account have N-N relationship with entity Industry. When user wants to qualify Lead – Industries that are related to it have to be copied into Account that is created… Continue Reading Andrew Butenko’s Article...

Read More
Copying of N-N related records with no code using UWT – Andrew Butenko’s Blog
Apr26
Read More
Ultimate Workflow Toolkit v1.5.0.0 – Andrew Butenko’s Blog
Mar20
Read More
How to generate Excel Template from code – Andrew Butenko’s Blog
Mar19
Read More
How to use SendEmailFromTemplate action with JavaScript and WebApi – Andrew Butenko’s Blog
Mar02
Read More
How to Add records to Marketing List using WebApi – Andrew Butenko’s Blog
Mar01
Read More
How to fix connectivity issues between SSDT + Report Authoring Extension and Dynamics 365 – Andrew Butenko’s Blog
Feb14
Read More
Ultimate Workflow Toolkit v1.4.0.0 – all you want to do with Multiselect Optionsets in Workflows – Andrew Butenko’s Blog
Dec03
Read More
lookupObjects – closer look – Andrew Butenko’s Blog
Nov22
Read More
What’s new in clientside for devs besides Xrm.WebApi – Andrew Butenko’s Blog
Nov21
Read More