Category: Development

Blog, Development

PCF: Lookup Attribute – Let’s take look under the hood

Lookup attribute was unavailable for PCF for a long time but the moment when it’ll become available and fully supported for developers of PCF controls is coming. In this post, I will take a look under the hood. All operations I will perform are technically unsupported so don’t use approaches I will use in your …

Blog, Development

PCF: 2 tips to minify the size of your PCF components (up to 15 times smaller)

About a month ago I joined the project where my main duty is the development of PCF components. I was soooo waiting for such a project to polish my skills and extend the knowledge I got building PCF components for fun. Let me move closer to the subject. I was working on the component that …

Blog, Development, Howto

How to get type of the instance (production/sandbox/something else) using code

I was working on the plugin where logic had to work differently depending on the type of the instance, i.e. if code is executed in Sandbox environment – do A, if code is executed in Production – do B. I never developed anything similar before and search engines did not bring anything valuable. After research …

Blog, Development, Howto

JS: How to get the originating record reference in the form script of the Quick Create Form

Just imagine that you need to define the context in which “Quick Create Form” was opened and depending on the context – to do some additional operations. In this short post I provide supported code you can use to define it.


PCF: Adding external handlers to controls

After I published the initial version of my PCF Control Toolkit I was asked how I was able to use external JS files possible in one of the controls. In this post, I decided to provide follow along steps to enable the same possibility in controls you develop and demonstrate the approach on the example …

Blog, Development

Development of custom Html/JS Webresources with help of modern frameworks

As you may know, Dialogs have been deprecated and are going away. I have a few customers who’ve asked me to replace their existing dialogs with something that would allow them to get the same result without losses in functionality. Microsoft recommends 2 techniques to replace Dialogs – BPF and Canvas Apps (embedded or opened …

Blog, Development

Populate Regarding and Activity Party Fields in the UCI Interface

There are a few different approaches developers used to prepopulate the “Regarding” and “Activity Party” fields of activities: The “Microsoft” way – the way the Classic UI worked to prepopulate fields – usage of undocumented parameters passed through the url and different variations around it. From Microsoft’s perspective this approach is unsupported. I’ve published 2 …

Blog, Development

Open proper form based on record’s data – UCI way

A cool feature of the 2011 CRM version was the possibility to have multiple forms for the same entity. That feature is awesome but it has one drawback – it’s not possible to create some kind of dependency between the form to use in the context of data. Among developers, there were a few ways …

Blog, Development

What’s new in D365 2020 Wave 1 release for front-end developers

There are a lot of different blog posts and video reviews of features available as a part of the Dynamics 365 2020 Wave 1 release. I played with this release a bit and found 2 client-side code enhancements that can be interesting (or even useful) for developers.

Blog, Development

Xrm.Navigation.navigateTo – gotchas, tricks and limitations

Here are ways that were used by developers to show Modal Dialogs: Xrm.Internal.openDialog Alert.js Custom Dialogs that used different frameworks like jQuery UI Dialog or similar But the main and common issue of options available was that those approaches can’t be considered as supported. And it stayed the same for years until Microsoft introduced Xrm.Navigation.navigateTo …