Debajit Dutta (Former 6x Business Solutions MVP, MCT)

Fetch Incidents (Case) in Dynamics 365 with no open activities. Use the lambda operator all() in WebApi

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Sometimes the finest of functionalities escape our eye. And this is really one such feature in Dynamics 365 Web API. And I discovered when a requirement came along. The requirement was to fetch …

Fetch Incidents (Case) in Dynamics 365 with no open activities. Use the lambda operator all() in WebApi Read More »

Field mappings in relationship not mapped when a child record is created from plugins in Dynamics 365/ CRM

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com A better solution for this problem has been discussed here. Please refer to the linked post. Debajit Dutta (Microsoft MVP)

Create a child record dynamically from Field Mappings in Dynamics CRM/ Dynamics 365 {CRM Tips from the vault}

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comCRM tips from the vault – A series which I have started on request of my blog readers who are quite new to CRM. My blog focus on niche topics which mostly require a …

Create a child record dynamically from Field Mappings in Dynamics CRM/ Dynamics 365 {CRM Tips from the vault} Read More »

How to share a Model Driven App with user from PowerApps Maker Portal

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com CDS have really brought back the concept of XRM with a bang. With Common Data Service (CDS) and Common Data Model (CDM), consultants and business are developing Model driven apps on the fly …

How to share a Model Driven App with user from PowerApps Maker Portal Read More »

Get Today’s date in Power Automate/ Microsoft Flow

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Hi All, I am back with one more tip from Power Automate. In this blog I am going to show you on how to get current date in your Power Automate flows.And with …

Get Today’s date in Power Automate/ Microsoft Flow Read More »

Enter an amount between $0.00 and $XXXX. Error for custom currency field in Dynamics 365 V9.x on-premise

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Now this was strange. It was kind of embarrassing as well in front of the customer. So my customer had quite a number of currency fields on a custom entity form. Some were …

Enter an amount between $0.00 and $XXXX. Error for custom currency field in Dynamics 365 V9.x on-premise Read More »

Set Password restrictions in Dynamics 365 Portals/ PowerApps portals

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com PowerApps portals are highly configurable stuffs. And most of the configurations related to authentication can be achieved using Site Setting. The hard part is there are so many site settings that is very …

Set Password restrictions in Dynamics 365 Portals/ PowerApps portals Read More »

Qualify Lead in Dynamics 365 using Xrm.WebApi

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comQualifying a lead Dynamically using WebApi is a requirement which is so common across Dynamics 365 Sales implementation. Although there is a Qualify button on the Lead form, many a times we need to …

Qualify Lead in Dynamics 365 using Xrm.WebApi Read More »

Concatenate properties of a JSON array in Power Automate/ Microsoft Flow

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comLately I have been working on Power Automate a lot. And if you have worked on Power Automate more often than not, you must have used the Compose Action.And one of the compose Action …

Concatenate properties of a JSON array in Power Automate/ Microsoft Flow Read More »

Convert an Array to string in Power Automate/ Microsoft Flow

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Power Automate Compose function is indeed quite powerful and if you have designed a complex flow, chances are you have used it in one of the flow steps.However there are so many hidden …

Convert an Array to string in Power Automate/ Microsoft Flow Read More »

Assign default web role when a user sign in Dynamics 365 Portals/ PowerApps portals

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comPowerApps portal – A simple yet powerful customer facing portal with so many inbuilt features. And these feature list are quite extensive. So it is really difficult to actually grasp all these features while …

Assign default web role when a user sign in Dynamics 365 Portals/ PowerApps portals Read More »

Authenticated Users Role and Anonymous Users role option in a Web Role in Dynamics 365 Portals/ PowerApps Portals. All you need to know about it

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com If you have worked on PowerApps portal project, you are probably aware of Web Roles. Web Roles are security roles in PowerApps portals through which you can control the access of a portal …

Authenticated Users Role and Anonymous Users role option in a Web Role in Dynamics 365 Portals/ PowerApps Portals. All you need to know about it Read More »

Binary to Base64 in Microsoft Power Automate/ Microsoft Flow

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com I was recently conducting a training on Power Automate and there in came this question. How do I convert a byte array to base64 string in PowerApps.After all there is a function in …

Binary to Base64 in Microsoft Power Automate/ Microsoft Flow Read More »

You don’t have required permissions to create Azure Active Directory applications–Error while creating Dynamics 365 Portal/ PowerApps portal

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com This is an issue that was recently reported to me. One of the developers from my customer team was trying to provision a portal for their Dynamics 365 environment. But unfortunately he was …

You don’t have required permissions to create Azure Active Directory applications–Error while creating Dynamics 365 Portal/ PowerApps portal Read More »

How to schedule workflows in Dynamics 365/ CRM. And it’s not using recursive workflow {CRM Tips from the Vault}

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comCRM tips from the vault – A series which I have started on request of my blog readers who are quite new to CRM. My blog focus on niche topics which mostly require a …

How to schedule workflows in Dynamics 365/ CRM. And it’s not using recursive workflow {CRM Tips from the Vault} Read More »

Convert string to Date in Power Automate/ Microsoft flow

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Microsoft Power Automate have indeed have lot of power in its Kitty. It has all the functions required to perform the minute operations that are required to perform our day to day task.And …

Convert string to Date in Power Automate/ Microsoft flow Read More »

Add/ remove/ modify JSON elements of a JSON array in Power Automate/ Microsoft Flow

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Power Automate is like a continuously evolving engine adding more power to it with every release by Microsoft. I still remember the limited functionality it had when it was introduced. Looking back to …

Add/ remove/ modify JSON elements of a JSON array in Power Automate/ Microsoft Flow Read More »

Prevent Save and create new on Quick create form in Dynamics 365/ CDS

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comOur life as consultants can be quite amusing. Sometimes we have a customer who complains about a simple feature not being present in Dynamics 365 and then when Microsoft finally puts it on the …

Prevent Save and create new on Quick create form in Dynamics 365/ CDS Read More »

Custom “Qualify Lead” button on Dynamics 365 Form {CRM tips from the vault}

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comCRM tips from the vault – A series which I have started on request of my blog readers who are quite new to CRM. My blog focus on niche topics which mostly require a …

Custom “Qualify Lead” button on Dynamics 365 Form {CRM tips from the vault} Read More »

Export Power Automate/ Microsoft flow run history

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comWay back when Power Automate was introduced, there was no way to export Flow run history. As surprising it may sound today, there was no way to export the flow run history when flow …

Export Power Automate/ Microsoft flow run history Read More »

Is you Server Side synchronization not working and mailbox test failing in your environment even though all your configurations are correct? Double check your environment Background operations are not disabled.

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com First of all, if your server side synchronization is not working for Production environment, then this blog may not help you. This only applies if your environment is in SandBox mode. Now when …

Is you Server Side synchronization not working and mailbox test failing in your environment even though all your configurations are correct? Double check your environment Background operations are not disabled. Read More »

Copy Notes with Attachments when a lead is qualified to Opportunity in Dynamics 365

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com“Starting from templates is a great way to start learning flows” – This is one of the recommendations I learned during my preparation for Microsoft Certification.And I realized it today when I had to …

Copy Notes with Attachments when a lead is qualified to Opportunity in Dynamics 365 Read More »

Parse XML in Power Automate/ Microsoft Flow

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com The simplest of things are sometimes the sweetest. And here is this one requirement to parse an XML using Power Automate/ Microsoft Flow. With SOAP giving away to REST based API’s, XML parsing …

Parse XML in Power Automate/ Microsoft Flow Read More »

Retrieve contents of File Data Type field in Dynamics 365/ CDS using JavaScript/ client code.

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Few months back I wrote an article on File Data type in Dynamics 365/ CDS where I explained the details of this data type and explained how you download the content of the …

Retrieve contents of File Data Type field in Dynamics 365/ CDS using JavaScript/ client code. Read More »

Custom integration between Dynamics 365/CDS and SharePoint using C# and SharePoint REST API ? Learn how to create a SharePoint Add-in and generate authentication token–Part 3

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com If you are directly on this blog post, I suggest you start from the first blog post of this series to get the context. So I am on the final blog of this …

Custom integration between Dynamics 365/CDS and SharePoint using C# and SharePoint REST API ? Learn how to create a SharePoint Add-in and generate authentication token–Part 3 Read More »

Custom button to save a record and stay on the same step without moving to the next or previous step inside a Webform step in PowerApps portals/ Dynamics 365 Portals? Check this out!

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Few months back I posted an article on how you can develop a custom button for Save as draft functionality on an Entity form in PowerApps portals. On that post I have received …

Custom button to save a record and stay on the same step without moving to the next or previous step inside a Webform step in PowerApps portals/ Dynamics 365 Portals? Check this out! Read More »

Custom integration between Dynamics 365/CDS and SharePoint using C# and SharePoint REST API ? Learn how to create a SharePoint Add-in and generate authentication token–Part 2

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com If you are directly on this blog, I suggest you go through the first blog of this series. In our previous blog, we created the SharePoint Add-in. In this blog we shall be …

Custom integration between Dynamics 365/CDS and SharePoint using C# and SharePoint REST API ? Learn how to create a SharePoint Add-in and generate authentication token–Part 2 Read More »

Custom integration between Dynamics 365/CDS and SharePoint using C# and SharePoint REST API ? Learn how to create a SharePoint Add-in and generate authentication token–Part 1

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Before I go ahead, while this blog depicts on how you can generate the Authentication token to integrate between Dynamics 365 and SharePoint, this can be applied to any application trying to authenticate …

Custom integration between Dynamics 365/CDS and SharePoint using C# and SharePoint REST API ? Learn how to create a SharePoint Add-in and generate authentication token–Part 1 Read More »

Query Entity Permissions for a portal user using Liquid in PowerApps portals/ Dynamics 365 Portals

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Entity permissions are a great way to control record access in your Dynamics 365 Portals. You can have fine grained control at individual record level. But ever wondered if you can determine the …

Query Entity Permissions for a portal user using Liquid in PowerApps portals/ Dynamics 365 Portals Read More »

Using EntityCollection as Output parameter of Dynamics 365 Action while calling Action from Microsoft Power Automate (Flow)

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com In that blog I explicitly mentioned on the problem of using EntityCollection as output parameter and suggested a possible solution to that. After multiple request from my blog readers, I am writing this …

Using EntityCollection as Output parameter of Dynamics 365 Action while calling Action from Microsoft Power Automate (Flow) Read More »

Understanding “Restrict Read” Web Page Access control rule in Dynamics 365 Portals/ PowerApps portals

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com “Restrict Read” – A privilege which is perhaps most misunderstood. And every session I go when I start explaining the concept of Restrict Read, participants are like – Come on! This is not …

Understanding “Restrict Read” Web Page Access control rule in Dynamics 365 Portals/ PowerApps portals Read More »

{Solved} Web Page cannot be set to self–Error while browsing PowerApps/ Dynamics 365 Portals

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Recently we had an issue with one of our Customer portals. Everything was working fine in DEV and UAT environments. However after portal deployment in production environment, customers reported they are unable to …

{Solved} Web Page cannot be set to self–Error while browsing PowerApps/ Dynamics 365 Portals Read More »

Skip Setting a Business process flow during record create in Dynamics 365/ CDS? This simple trick may help you

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com We all love Business Process flows. And why not? Their introduction have solved the age old problem of visualizing a record as and when it progress through multiple stages. Typically lead and opportunity …

Skip Setting a Business process flow during record create in Dynamics 365/ CDS? This simple trick may help you Read More »

Stop Assign functionality based on Business Logic using Client API in Dynamics 365

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Assign – an age old functionality which is there since the time I started working in CRM which dates way back to 2011. So much we have seen about Assign that whenever I …

Stop Assign functionality based on Business Logic using Client API in Dynamics 365 Read More »

Scope of getSharedVariable and setSharedVariable functions in Dynamics 365 Client API

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com These functions have been introduced way back in 2011 but till date I believe this is one of the least used features of Dynamics 365 Client API’s. And partly because of the fact …

Scope of getSharedVariable and setSharedVariable functions in Dynamics 365 Client API Read More »

Configure conflict detection for mobile offline synchronization in Dynamics 365

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com In my previous article, I described in detail about Mobile Offline filters. Unlike the previous blog, this one is going to be real short. In this blog I am just going to discuss …

Configure conflict detection for mobile offline synchronization in Dynamics 365 Read More »

Configuring Mobile Offline profiles in Dynamics 365 for Offline Sync on mobile devices

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com Trust me we all know about the offline feature of Dynamics 365 Mobile App. And if you ask even experienced Dynamics consultants on how to enable an entity for offline, the answer …

Configuring Mobile Offline profiles in Dynamics 365 for Offline Sync on mobile devices Read More »

How to get device location in Dynamics 365 for Mobile

Follow my blog for interesting topics on Dynamics 365, Portals and Power Platform. The world is into mobile devices and Dynamics 365 is not left far behind. With unified interface, user’s are now getting seamless experience across all devices starting from web browser in desktop clients, to phones and tablets. Dynamics 365 is well and …

How to get device location in Dynamics 365 for Mobile Read More »

Where does Dynamics 365 Portals/ PowerApps portals store theme information when you change portal theme using PowerApps portal editor?

For training and consulting, write to us at info@xrmforyou.com Recently I published a blog on the new preview feature for PowerApps portals where it allows you to change the portal theme from PowerApps portal editor. Check this here. While I received quite a few queries on the same, one of the interesting questions I got …

Where does Dynamics 365 Portals/ PowerApps portals store theme information when you change portal theme using PowerApps portal editor? Read More »

Performing updates using alternate key in Dynamics 365 WebAPI and need to make sure it only updates and doesn’t create new record? Check this one out!

For training and consulting, write to us at info@xrmforyou.com If you have used alternate keys in Dynamics 365 and tried to update using a record using WebAPI alternate key, you know the default behavior of how it works.For example, let’s see the sample code below. // JavaScript source code function UpdateRecord(e) {    var fc = …

Performing updates using alternate key in Dynamics 365 WebAPI and need to make sure it only updates and doesn’t create new record? Check this one out! Read More »

Using classList() API in JavaScript to work with multiple classes for a HTML element.

For training and consulting, write to us at info@xrmforyou.com Today I would like to show you the cool classList API which exists in the native JavaScript API but trust me, so many of us are still not aware of it. Event I find people with somewhat significant experience of working with JavaScript is not aware …

Using classList() API in JavaScript to work with multiple classes for a HTML element. Read More »

What is Developer extensions tab in WebFormSteps in Dynamics 365/ PowerApps portals? Is there any significance to it?

For training and consulting, write to us at info@xrmforyou.com Recently I have been conducting a lot of training on PowerApps Portals. And every time when I start teaching WebForms, I get this question – What is the significance of Developer extensions in WebForm step. If you are not able to relate, this is what I am …

What is Developer extensions tab in WebFormSteps in Dynamics 365/ PowerApps portals? Is there any significance to it? Read More »

Convert byte array to base64 string using Liquid in Dynamics 365/ PowerApps portals

For training and consulting, write to us at info@xrmforyou.com Liquid and PowerApps portals. I think a match made in heavens. And what can I say about Liquid, a simple yet so powerful template editing language. And while I was singing praises for Liquid, a colleague came up to me and told that liquid does not have …

Convert byte array to base64 string using Liquid in Dynamics 365/ PowerApps portals Read More »

Store a JavaScript object in localStorage and sessionStorage

For training and consulting, write to us at info@xrmforyou.com I have written a blog recently on sessionStorage and localStorage. However few questions I received on that blog is how can we store Javascript objects in sessionStorage and localStorage. Storing simple string and integer values are fine but what if you want to store a JavaScript object …

Store a JavaScript object in localStorage and sessionStorage Read More »

Understanding sessionStorage and localStorage in JavaScript

For training and consulting, write to us at info@xrmforyou.com Before the advent of HTML 5, all our data in client side used to be stored in cookies. As that was the only option then. The problem with cookies was it was included in every server request. And also the more the cookies you store, you …

Understanding sessionStorage and localStorage in JavaScript Read More »

Field level security based on security roles in Entity Form/Web Form based on User Roles in Power Apps/ Dynamics 365 Portal

For training and consulting, write to us at info@xrmforyou.com If you are looking for a new feature that has been introduced, unfortunately it’s not. Come one Debajit! Don’t be so disappointing at the start of the  blog!But truth needs to be told! So what are my other options?Field security profiles are not available in Power …

Field level security based on security roles in Entity Form/Web Form based on User Roles in Power Apps/ Dynamics 365 Portal Read More »

Difference between var and let in javascript. All you need to know

For training and consulting, please write to us at info@xrmforyou.com And here I am back with a common question that is asked to me by an beginner who is trying their hands out with javascript. After all both var and let are used to declare variables in JavaScript. Well the difference between them is – …

Difference between var and let in javascript. All you need to know Read More »

Want to promisify native XmlHttpRequest in JavaScript? Check this out!

For consulting and training, please write to us at info@xrmforyou.com Promises in JavaScript have taken over by a storm. Gone are the days of nested successCallbacks and errorCallbacks. But still XmlHttpRequest is being used every where and still remains the most popular to perform server HTTP requests. How about giving XmlHttpRequest a makeover. So let’s …

Want to promisify native XmlHttpRequest in JavaScript? Check this out! Read More »

Delete a specific item of an array in Javascript

For training and consulting, write to us at info@xrmforyou.com JavaScript is something perhaps every programmer have worked. No matter whether you are a front end developer, back end developer or full stack developer, chances are for some requirement or other you must have used JavaScript. And if it is JavaScript, you must have used arrays. …

Delete a specific item of an array in Javascript Read More »

Is you Javascript not able to access the cookie? May be they are HttpOnly cookie and not meant for your client side scripts. Check this out!

To access your cookies in JavaScript, you use document.cookie. That’s a no brainer there. Your javascript is using document.cookie. However to your surprise you don’t find the cookie you are looking for. document.cookie simply not returning your cookie. Come on my cookie. But not everything is meant for everybody. And the so the same applies …

Is you Javascript not able to access the cookie? May be they are HttpOnly cookie and not meant for your client side scripts. Check this out! Read More »

{Preview Feature} Create and Edit themes in PowerApps/ Dynamics 365 portals in few clicks and all using an intuitive UI. Explore the new Simplified themes feature in PowerApps portal studio

For training and consulting, write to us at info@xrmforyou.com With every release of PowerApps and PowerApps portals, Microsoft is making the life of customizers easy. And when I saw this feature this was my reaction – “WOW“ Very simple yet so beneficial and time saving. Traditionally customers always had a ask to change the theme …

{Preview Feature} Create and Edit themes in PowerApps/ Dynamics 365 portals in few clicks and all using an intuitive UI. Explore the new Simplified themes feature in PowerApps portal studio Read More »

{QuickTip} Logout from Dynamics 365 Portals/ PowerApps portals programmatically

Seeing the title of this post, you may be wondering what’s new about this post. After all, you already have a post which shows how to put custom login/ logoff button. Well,  there is something new here. And that’s why this blog post. The requirement this time is to logoff without user intervention. And based …

{QuickTip} Logout from Dynamics 365 Portals/ PowerApps portals programmatically Read More »

Base64 encoding and Base64 decode using Liquid in Dynamics 365/ PowerApps portals

For training and consulting, write to us at info@xrmforyou.com Follow my blog for more interesting topics on Dynamics 365 and Portals As I have been working on liquids a lot lately, I am amazed by the simple and yet powerful language which allows me to do so much without drop of a sweat. And then …

Base64 encoding and Base64 decode using Liquid in Dynamics 365/ PowerApps portals Read More »

{Quick Tip} Display knowledge article as attachment in Dynamics 365/ PowerApps portals

For training, consulting and our products, please write to us at – info@xrmforyou.com I got this query from one of my blog readers and hence thought of sharing it with everyone. They were trying to display a knowledge article in portals. They were following the Microsoft guidance – “You can author knowledge articles and add …

{Quick Tip} Display knowledge article as attachment in Dynamics 365/ PowerApps portals Read More »

{Quick Tip} – Wanted to know whether your client code is running on-premise or online in Dynamics 365? Use the isOnPremises() method in Global context

For training, consulting and our products, please write to us at – info@xrmforyou.com Recently I faced this scenario where I needed to determine based on whether I am on-premise or online, I needed to write my logic accordingly. We have our popular Sharepoint Utility which is used by a lot of customers and we had …

{Quick Tip} – Wanted to know whether your client code is running on-premise or online in Dynamics 365? Use the isOnPremises() method in Global context Read More »

Query and display entity image in your entity list or entity form in PowerApps/ Dynamics 365 Portals–Part 1

For training, consulting and our products, write to us at info@xrmforyou.com This is a very common requirement. Showing entity image in your Dynamics 365 portals. And here I am going to show you not one but couple of ways to do the same. The first one is quite unique and less resource demanding on the …

Query and display entity image in your entity list or entity form in PowerApps/ Dynamics 365 Portals–Part 1 Read More »

Query and display entity image in your entity list or entity form in PowerApps/ Dynamics 365 Portals–Part 2

For training, consulting and our products, write to us at info@xrmforyou.com This is the part 2 of this blog series. You can check out the part 1 of this blog series here. So here I am going to show you the other way of displaying entity image on Dynamics 365 Portals entity list/ entity form. …

Query and display entity image in your entity list or entity form in PowerApps/ Dynamics 365 Portals–Part 2 Read More »

Configure Global Search for custom entities in Dynamics 365/ PowerApps portals

With the recent Release Wave updates in Power Apps Portal, we can include our custom entity in Global Search. Let me guide you how to configure search for entities. Step 1: Go to your Portal Management App->Site Settings and create the following settings as explained below: 1. Make sure the primary site setting named Search/Enabled …

Configure Global Search for custom entities in Dynamics 365/ PowerApps portals Read More »

Show item action buttons in Dynamics 365 Portal Entity list as horizontal buttons instead of vertical list

Recently I got this requirement where I needed to show the actions buttons inside Entity List in horizontal fashion. Be default whenever you configure entity list item action buttons like Details/ Edit/ Delete/ Workflow, it shows up in vertical fashion. However the customer wanted to show the buttons horizontally, side by side. It’s actually much …

Show item action buttons in Dynamics 365 Portal Entity list as horizontal buttons instead of vertical list Read More »

Register function when entity list in PowerApps portal have loaded completely? Attach your event handlers to entity list loaded event instead of document.ready or onload method of the webpage/ Entitylist

This is a very common requirement where when the entity list if complete, you want to interact with the entity list HTML elements and use custom scripts to apply some custom styles depending on some business logic. You may be wondering why this can be so difficult. After all we can write $(document).ready on Web …

Register function when entity list in PowerApps portal have loaded completely? Attach your event handlers to entity list loaded event instead of document.ready or onload method of the webpage/ Entitylist Read More »

“This attachment can not be opened on your device”–error while trying to open a file using Xrm.Navigation.openFile

This is an error I was facing while trying to download file using Xrm.Navigation.openFile. I was trying on unified interface on web browser. Tried on all browsers and I was getting this error. Below is my code which I was trying. var file = {    fileContent: “YWJjZA==”, //Contents of the file.     fileName: “test.txt”, //Name …

“This attachment can not be opened on your device”–error while trying to open a file using Xrm.Navigation.openFile Read More »

Using Xrm.Navigation.openFile to download a note attachment file with file save confirmation dialog

I got this requirement recently and wanted to share with my readers. Quite a cool feature actually and some common requirement. So there is a ribbon button on a entity form. When the ribbon button is clicked, it should query an annotation attachment, get the content and then throw the file save dialog option to …

Using Xrm.Navigation.openFile to download a note attachment file with file save confirmation dialog Read More »

Setting value in DateTime field in PowerApps/ Dynamics 365 Portals dynamically using Javascript

You may be wondering why this simple post? After all, setting a date value, what’s in that? Sometimes the simplest of things takes us by surprise. Below is a screenshot of an entity form with date field. Based on custom business logic on the client side, we have to set the value of the date …

Setting value in DateTime field in PowerApps/ Dynamics 365 Portals dynamically using Javascript Read More »

The structure of error response from WebAPI in Dynamics 365/ CDS have changed. The innererror property in the JSON response has been removed. Are you aware of it?

And I just faced this an hour back as I was reviewing a piece of code. Can’t paste the actual code but the code was kind of similar to this. Check for the highlighted part where the code check for innererror property. So if your code is referring to this property it is no longer …

The structure of error response from WebAPI in Dynamics 365/ CDS have changed. The innererror property in the JSON response has been removed. Are you aware of it? Read More »

Working with Tuples in C# and reduce the clutter in your code by avoiding unnecessary POCO classes

I am a Dynamics 365 solution architect and one of my job responsibility is to perform lots and lots of code review. If you are not into Dynamics 365 but just came here to learn Tuples, well don’t worry about it. This article is about Tuple’s and how it can reduce the use the unnecessary …

Working with Tuples in C# and reduce the clutter in your code by avoiding unnecessary POCO classes Read More »

Azure storage integration with PowerApps/ Dynamics 365 Portals not working? Receiving “access is denied” message in portal logs. This can be a reason as well. Check this out!

Well, there can be so many reasons why Azure Storage integration with Dynamics 365 Portals/ PowerApps portals is not working. However more often than not, the most common error I see is “access is denied” message in the portal logs. And you scramble to your portal configurations and verify the connection string to your azure …

Azure storage integration with PowerApps/ Dynamics 365 Portals not working? Receiving “access is denied” message in portal logs. This can be a reason as well. Check this out! Read More »

Configure web resource in CDS/ Dynamics 365 form to show documents uploaded in Azure storage in PowerApps/ Dynamics 365 Portals

The is the second blog of this series. If you are on this blog and have missed out on the first one, I request you to go through the previous one to be  fully aware of the context. Want to leverage Azure storage for your documents in PowerApps/ Dynamics 365 portals instead of Notes? Check …

Configure web resource in CDS/ Dynamics 365 form to show documents uploaded in Azure storage in PowerApps/ Dynamics 365 Portals Read More »

Want to leverage Azure storage for your documents in PowerApps/ Dynamics 365 portals instead of Notes? Check this out

Storing documents from portal is fairly important task in all Portal implementations. And Powerapps portals are well equipped to provide you the flexibility to integrate with SharePoint, CDS and now Azure storage accounts as well for your documents. While SharePoint and notes integrations are quite common, integrating with azure storage account requires quite a few …

Want to leverage Azure storage for your documents in PowerApps/ Dynamics 365 portals instead of Notes? Check this out Read More »

{Preview Feature} Wish you could set up portal authentication with multiple provider through an intuitive UI instead of manually creating site settings. The new simplified authentication preview feature in portals allow you to do just that. Check this out!

I was just going through this Preview feature of PowerApps portals and I could not stop myself from sharing it. If you have ever worked on Powerapps/ Dynamics 365 portals authentication, you know the pain of remembering every site setting and then working out your way to fix them. It’s kind of nightmare to configure …

{Preview Feature} Wish you could set up portal authentication with multiple provider through an intuitive UI instead of manually creating site settings. The new simplified authentication preview feature in portals allow you to do just that. Check this out! Read More »

Setting up default authentication provider in PowerApps/ Dynamics 365 Portals using identity provider configuration UI

In this blog, I will set-up the default portal authentication provider using the new PowerApps/ Dynamics 365 Portal identity provider configuration UI. If you are not aware of the preview feature, please visit the previous blog to know more about this new preview feature. So below is the identity provider screen. And by default, Azure …

Setting up default authentication provider in PowerApps/ Dynamics 365 Portals using identity provider configuration UI Read More »

{Preview Feature} Google Authentication in Dynamics 365/ PowerApps portals using the Identity configuration UI in PowerApps

In this blog, I will set-up Google authentication using the new PowerApps/ Dynamics 365 Portal identity provider configuration UI. If you are not aware of the preview feature, please visit the previous blog to know more about this new preview feature. In the identity provider screen, we configure the Google provider. Once we click on …

{Preview Feature} Google Authentication in Dynamics 365/ PowerApps portals using the Identity configuration UI in PowerApps Read More »

Designing Business process flows for your canvas apps

I had this requirement lately and the first time I heard this I thought, is this even possible? But then I never doubt about the every increasing capability of canvas apps. So decided to do a search. And guess what! Found this wonderful documentation here with a complete solution. https://powerapps.microsoft.com/en-us/blog/using-business-process-flows-in-a-canvas-app/ I am simply falling in …

Designing Business process flows for your canvas apps Read More »

Sales Team Member App in Dynamics 365

In my training sessions I have this question frequently popping up – “What is the Sales team member APP in my APP List”. Precisely when you open up your Dynamics 365 apps section, you can see new Apps – Sales Team Member. And this one is already in general availability since April 2020. So what …

Sales Team Member App in Dynamics 365 Read More »

Multiple image data types with option to edit/ annotate the image in Dynamics 365/ CDS/ Model driven apps. New preview feature in Release wave 1 – 2020

With the latest preview release in Model driven apps, you are now able to create multiple fields of image data types. And guess what, you can even annotate your images. You have the option to crop your image, highlight, rotate your image as well. So let’s get started. Before you go ahead and get started, …

Multiple image data types with option to edit/ annotate the image in Dynamics 365/ CDS/ Model driven apps. New preview feature in Release wave 1 – 2020 Read More »

Get initial value of a field in Dynamics 365/CDS form using Client API

This is one of the most common requirement which you come across in your Dynamics 365 implementations. For example – you may have a requirement where you need to determine the initial value of a field when the record is opened. So that if the user have changed the value to something else, you can …

Get initial value of a field in Dynamics 365/CDS form using Client API Read More »

Work with Quick view forms in Dynamics 365/ CDS Client API

Quick view forms are wonderful features in Dynamics 365. And frequently you need to interact with quick view form from client side. As you can see in the below screenshot, we have a quick view form of contact on the account form. Whenever we select the Primary Contact, the contact details like Email Address and …

Work with Quick view forms in Dynamics 365/ CDS Client API Read More »

Html and Xml Encoding/ Decoding in Dynamics 365/ CDS Client API

If you are looking for html encoding/ decoding  while writing client code in Dynamics 365/ CDS, you don’t need to look to any jQuery or third party libraries to do that. Infact Dynamics 365 Client API have Xrm.Encoding namespace which contains all the method to perform html encoding/ decoding and xml encoding/ decoding as well. …

Html and Xml Encoding/ Decoding in Dynamics 365/ CDS Client API Read More »

Get UserPrivilege on a field in Dynamics 365/ CDS Client API

FOLLOW MY BLOG FOR INTERESTING FEATURES ABOUT DYNAMICS 365/ POWERAPPS/ PORTALS AND LOT MORE Here is my tip for today! If you have a requirement where you need to check the privilege the user has on a particular field and then take decisions accordingly, you can use the formContext.getAttribute(“<fieldname>”).getUserPrivilege(); method. The method has been introduced …

Get UserPrivilege on a field in Dynamics 365/ CDS Client API Read More »

Opening a quick create form in Dynamics 365–Use Xrm.Navigation.openForm instead of deprecated Xrm.Utility.openQuickCreate

Dynamics 365 and PowerApps are an ever changing world and in this ever changing world, keeping track of the changes while being busy at work is really hard. And I realized that hard while recently as I was using Xrm.Utility.openQuickCreate to launch a quick create form from client side API. Xrm.Utility.openQuickCreate has been deprecated and …

Opening a quick create form in Dynamics 365–Use Xrm.Navigation.openForm instead of deprecated Xrm.Utility.openQuickCreate Read More »

Rich Text Field like email description are showing in plain text with html tags in PowerApps/ Dynamics 365 Portals

This one is quite interesting. So my customer was showing the timeline on the portal. So emails, appointments and phone calls we being shown in portal timeline. The problem with timeline in portals is when too many of them are there, it becomes a clutter. So our customer wanted to have separate form dedicated for …

Rich Text Field like email description are showing in plain text with html tags in PowerApps/ Dynamics 365 Portals Read More »

Having issue while working with multi-line HTML/ text content snippets in Dynamics 365/ PowerApps portals? No worries, liquid has got your back

Well this one is really interesting. And sometimes the strangest of issues comes from the most unexpected scenarios. We have content snippet for English language. Snippet type is HTML. Customer is using this snippet in JavaScript on load of the webpage. Snippet screenshot below And below is the JavaScript written on load of the web …

Having issue while working with multi-line HTML/ text content snippets in Dynamics 365/ PowerApps portals? No worries, liquid has got your back Read More »

Convert New line to html break in PowerApps Portals/ Dynamics 365 Portals using Liquid

Recently we had a requirement where we needed to show the text stored in multiline textbox in Dynamics 365, inside a div element in PowerApps portal. The problem was when we have a text inside a multi-line textbox and the user press the enter key, the value is stored as new line character. However when …

Convert New line to html break in PowerApps Portals/ Dynamics 365 Portals using Liquid Read More »

Language specific custom text in Dynamics 365 portals/ PowerApps portals

This is a very common requirement in PowerApps portals where you need to show language specific text to the user. If the portal is in french, then the french text shall be displayed accordingly text for other languages. let’s take a scenario here where you need to take the render language specific text using javascript. …

Language specific custom text in Dynamics 365 portals/ PowerApps portals Read More »

Designing a product and want to know the system forms which a user have access to in Dynamics 365? Use the RetrieveFilteredFormsRequest request to identify the same

My customer was having a third party application where they were querying for the system forms and one of the requirement was to find the system forms based on userid. Basically they would have a user guid based on which they need to find all the system forms of type = Main, the user have …

Designing a product and want to know the system forms which a user have access to in Dynamics 365? Use the RetrieveFilteredFormsRequest request to identify the same Read More »

Notes created in Dynamics 365/ CDS are showing up in portals with all HTML tags? May be you have enabled the rich text feature for notes in timeline

Today my customer called me up and told that Notes which are getting created in Dynamics 365 are showing up in the portals with HTML tags and stuff and the look and feel is completely distorted. For me it was surprising because till last night everything was just working fine. So obviously something might have …

Notes created in Dynamics 365/ CDS are showing up in portals with all HTML tags? May be you have enabled the rich text feature for notes in timeline Read More »

{solved} Unable to connect to Dynamics 365/ CDS environment with two factor authentication enabled from your external application

Ever since MFA have been enabled for environments, I find quite a few requests on how can we connect to our Dynamics 365/ CDS environments from custom build external applications. I have even customers calling up and asking for a resolution since the console jobs are failing all of a sudden. Now we have two …

{solved} Unable to connect to Dynamics 365/ CDS environment with two factor authentication enabled from your external application Read More »

Stop users for performing Abandon/ Finish operations on a business process flow in Dynamics 365 using Client API.

This is a requirement I have recently received and the requirement was – “Users should not be able to abandon or finish a business process flow”. You may be thinking this has to be done using plugins. Off-course this can be done using plugins. Off course you can do it. But then you have to …

Stop users for performing Abandon/ Finish operations on a business process flow in Dynamics 365 using Client API. Read More »

prevent save event of a record in Dynamics 365 forms with custom message – use the setIsValid method

We all know that in UCI, when we try to save a record and if one or more of the form fields are does not contain valid data, the system stops the record from being saved and appropriate validation notifications are shown on the top of the form. For example I am on the contact …

prevent save event of a record in Dynamics 365 forms with custom message – use the setIsValid method Read More »

Hiding the time part of your datetime control in Dynamics 365

Recently I got a requirement where I needed to hide the time part of your datetime control. Basically I had a Datetime field of format date and time, but when the control is shown on the form, I only needed to show the date part and hide the time part. I was searching and then …

Hiding the time part of your datetime control in Dynamics 365 Read More »

control.getContentWindow() method in Dynamics 365/ PowerApps can help you get formContext in your webresource page. And in-fact a wide range of possibilities. Have you explored it yet?

Recently I bumped into this method and it unraveled before me a wide range of possibilities. And one of them is the perennial problem to access formContext in webresources embedded inside your form. So let’s see how you can do this. First things first – getContentWindow() method only works on webresources and iframes. In this …

control.getContentWindow() method in Dynamics 365/ PowerApps can help you get formContext in your webresource page. And in-fact a wide range of possibilities. Have you explored it yet? Read More »

Integrate Python to connect to Dynamics 365/ CDS Web API using Client credentials

Well this is my third post on Python and I am loving the language and it’s simple syntax of doing things. So I decided to explore on how to connect to Dynamics 365 WebAPI using Python. And I came across this wonderful post – https://alexanderdevelopment.net/post/2016/11/27/dynamics-365-and-python-integration-using-the-web-api/. Highly recommended you go through this one. While implementing the …

Integrate Python to connect to Dynamics 365/ CDS Web API using Client credentials Read More »

Are you using Async javascript functions with await keyword in your webresources yet in Dynamics 365? They can make your code look much readable by removing the clutter of .then() constructs to handle each promise evaluation. Check this one out!

Most of our Xrm API’s, specially the ones which interact with data using Xrm.WebApi are promises. So to handle the result of the actions, we need to implement the success and error callbacks using the .then() construct. But the problem with this approach is if we need to sequence a series of events which need …

Are you using Async javascript functions with await keyword in your webresources yet in Dynamics 365? They can make your code look much readable by removing the clutter of .then() constructs to handle each promise evaluation. Check this one out! Read More »