Model driven apps

Object reference not set to an instance of an object – error in Dynamics 365 plugin registration tool

Follow Debajit’s Power Apps & Dynamics 365 Blog on WordPress.com To be honest, I have been getting this error for quite some time now, every now ever since I started working with Dynamics 365 SDK. And believe me it can give you a nightmare. Plugin registration tool is one such utility which we use everyday without …

Object reference not set to an instance of an object – error in Dynamics 365 plugin registration tool Read More »

Migrate document templates across environments in Dynamics 365

Follow Debajit’s Power Apps & Dynamics 365 Blog on WordPress.com It was just another day at my office and my client’s developer just walked up to me and asked – “How do I move my document templates to one environment to another?”. He seems to have manually uploaded in the target environment but that is not …

Migrate document templates across environments in Dynamics 365 Read More »

Register events on Dynamics 365 forms – Did you know library name doesn’t matter?

Follow Debajit’s Power Apps & Dynamics 365 Blog on WordPress.com Registering an event handler for your form events or field events – Probably the most mundane stuffs that you would perform everyday if you a CRM consultant. But sometimes the simplest things have the greatest mysteries to unfold. Now here I was in a training session …

Register events on Dynamics 365 forms – Did you know library name doesn’t matter? Read More »

Get Web Api Version Dynamically in Dynamics 365/ DataVerse

Follow Debajit’s Power Apps & Dynamics 365 Blog on WordPress.com Loads of my blog readers wanted to know how to get the Web API version dynamically in scripts. In this blog, I will walk you through the steps to accomplish the same. DataVerse or Dynamics 365 Apps WebAPI endpoint is of the following format. With each …

Get Web Api Version Dynamically in Dynamics 365/ DataVerse Read More »

How to call an action with EntityCollection Input parameter Dynamics 365 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.comXrm.WebApi methods introduced by Microsoft are great! But not much can be said about Xrm.WebApi.execute method which is used to invoke custom actions from client side code.To be honest, ever since I have written …

How to call an action with EntityCollection Input parameter Dynamics 365 WebApi Read More »

How to sequence multiple Xrm.WebApi calls 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.comCome version 9.0 of Dynamics, Microsoft have introduced the Xrm.WebApi methods which have significantly eased out the task of making web api calls from the client side. However as we are all using this …

How to sequence multiple Xrm.WebApi calls in Dynamics 365/ CDS. Read More »

How to Add/ remove components in Dynamics 365 App for Outlook

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 there was a requirement to change the Dynamics 365 App for Outlook  screen. Basically when you set up the default App for Outlook, the Sitemap contains just the Activities and the Dashboards. …

How to Add/ remove components in Dynamics 365 App for Outlook Read More »

Create web page, entity forms and entity lists using "Create Portal Content" feature in Dynamics 365/ 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 The true potential of a portal is realized only when we expose the Dynamics 365 content on the portals. However as we all know, to expose the content end-end, we need to create …

Create web page, entity forms and entity lists using "Create Portal Content" feature in Dynamics 365/ PowerApps portals Read More »

Get FormContext in Sub-grid ribbon event in Dynamics 365 V9.0

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 After my last blog on getting the formContext and the client URL from a ribbon button on the form in Dynamics Version 9.0, I was simply taken back by the comments and was …

Get FormContext in Sub-grid ribbon event in Dynamics 365 V9.0 Read More »

Onload event does not fire when a record is saved in Dynamics 365/ CRM. What’s the workaround?

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comRecently I was working with a customer and came across a requirement where they needed to fire an event on client side every time once the data is saved successfully to process some post-save …

Onload event does not fire when a record is saved in Dynamics 365/ CRM. What’s the workaround? Read More »

Get Security role names of a logged in user in Dynamics 365. Dynamics 365 have an api for that.

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 contents of the POST has been removed since the methodology described in the POST has been deprecated by Microsoft. Check out the latest version of the post here to view the latest client …

Get Security role names of a logged in user in Dynamics 365. Dynamics 365 have an api for that. Read More »

{Solved} How to call Web API from a plugin or custom workflow in Dynamics 365

*Before I get started with the topic, a quick note on the use cases of this particular post. While everything mentioned in the post would work just fine, this post is more of conceptual and feasibility study than a real life implementation use case. For working with CRM data in same environment, SDK is the …

{Solved} How to call Web API from a plugin or custom workflow in Dynamics 365 Read More »

Get formContext inside ribbon event handlers 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.comBefore Xrm.Page was deprecated, getting the client URL and access form attributes and controls were so easy in custom ribbon button handlers. AAll I needed to write to get the ClientUrl var clientUrl = …

Get formContext inside ribbon event handlers in Dynamics 365 Read More »

Retrieve Data using Alternate Key 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.comAlternate keys have been implemented some time back and by now I think most of the consultants working with Microsoft Dynamics are familiar with the concept of alternate keys.In case you are new to …

Retrieve Data using Alternate Key in Dynamics 365 Read More »

Delete field from managed solution in Target environment 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.comDynamics CRM 2016 introduced the concept of solution segmentation, solution patching and cloning and indeed it has come a long way over the last 2-3 years. We are now exposed to CDM, flows, powerapps …

Delete field from managed solution in Target environment in Dynamics 365 Read More »

Provide permission to Model Driven App in Dynamics 365 V9.0

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 one of our customers upgraded to version 9.0 and suddenly and once the upgrade completed, they reported to us that they are not able to find permission for Apps under their security …

Provide permission to Model Driven App in Dynamics 365 V9.0 Read More »

“Cannot read property ‘’ of null”–Error while calling an action from a WebResource in Dynamics 365 – Xrm.WebApi.execute

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 one drove me crazy and believe these kind of things pop-up the most when you don’t expect them at all. A simple training going on and I was demoing them the wonderful …

“Cannot read property ‘’ of null”–Error while calling an action from a WebResource in Dynamics 365 – Xrm.WebApi.execute Read More »

401. Unauthorized error while querying Dynamics 365 Web Api from external application. Follow these steps to avoid the error

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 have wrote quite a few articles over the last one year to query Dynamics Web API using ADAL from client side and as well as server side. However lately I am receiving …

401. Unauthorized error while querying Dynamics 365 Web Api from external application. Follow these steps to avoid the error Read More »

Automatically calculate Rollup fields in Dynamics 365 – A utility from XrmForYou consulting

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comFrustrated about customers complaining that Roll-up fields are not calculating at runtime? Abandoned rollup fields and went for something custom because customer couldn’t afford the calculation to happen every hour? The good news is …

Automatically calculate Rollup fields in Dynamics 365 – A utility from XrmForYou consulting Read More »

Set metadata for files uploaded in SharePoint from CRM – CRM and sharepoint integration -New version release announcement!

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 are delighted to announce the release of the next version of our tool – Sharepoint Attachment Extractor and Metadata Manager. For readers who are new to this tool, this tool enables you …

Set metadata for files uploaded in SharePoint from CRM – CRM and sharepoint integration -New version release announcement! Read More »

Invoke bound actions (entity actions) using script in Dynamics 365 – Xrm.WebApi.execute

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 a follow up to my previous blog where I showed you how can you call a global action with all parameter types using the newly introduced Xrm.WebApi.execute method. https://debajmecrm.com/dynamics-version-9-0-execute-custom-action-with-all-parameter-types-in-dynamics-crm-version-9-0/ Now coming …

Invoke bound actions (entity actions) using script in Dynamics 365 – Xrm.WebApi.execute Read More »

Most Valuable Professional (MVP) award 2018-2019 – A big thanks to all my blog readers.

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 big thank you note to all my blog readers without whom this has not been possible. It’s been a great journey so far and undoubtedly it’s my blog which has helped me …

Most Valuable Professional (MVP) award 2018-2019 – A big thanks to all my blog readers. Read More »

Form design considerations and best practices for Dynamics 365 Mobile app

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 Spoiler alert! Unlike other blogs, I am not going to update you about any new feature. Rather I am going to share my project experience in handling multiple forms designed for your Web …

Form design considerations and best practices for Dynamics 365 Mobile app Read More »

Show Lookup Dialog dynamically using script 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.comThis one feature that I am going to pen down here, personally I have longing for it quite sometime now.So before going into the HOW part of it, let’s understand the why part of …

Show Lookup Dialog dynamically using script in Dynamics 365 Read More »

Modal alert/ confirm/ and error DIALOG 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 Working currently on a client engagement on the latest Dynamics version (v9.0) and hence got a chance to the new introduced Client API’s with version 9.0.For starters, the Xrm.Page has been deprecated with …

Modal alert/ confirm/ and error DIALOG in Dynamics 365 Read More »

Understanding Hierarchy security – Manager Hierarchy, 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.com Manager Hierarchy was introduced way back with 2015 Online Update 1. And you might be wondering why this blog after years this feature has been introduced? Well I can assure you, you won’t …

Understanding Hierarchy security – Manager Hierarchy, in Dynamics 365/ CDS Read More »

Allow single record in To recipients field of an Email 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.com Nothing like real time requirements and here is another one. Customer walks in and puts in his requirement – “Users should not be able to select more than one record in the To …

Allow single record in To recipients field of an Email in Dynamics 365/ CDS Read More »

Allow only queue or only user record in from field of an Email in Dynamics 365/ CDS. And it’s not using unsupported scripts

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 old topic which is getting discussed since CRM 2011 or I think even before that. You must be wondering, why I am digging out history here. Well there has been …

Allow only queue or only user record in from field of an Email in Dynamics 365/ CDS. And it’s not using unsupported scripts Read More »

Headless Authentication with Dynamics CRM online Web API – Without using Active Directory Authentication Library (ADAL) {Part-I}

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 Well this topic has been discussed again over multiple times. And I myself has written a blog on how to do a headless authentication (without user intervention) between Dynamics CRM Online Web API …

Headless Authentication with Dynamics CRM online Web API – Without using Active Directory Authentication Library (ADAL) {Part-I} Read More »

Certificate not visible in IIS server post import

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 proceed with the post. let me clear this out. There is nothing special about IIS server where CRM is installed. It applies to all IIS servers. However being a devotee of …

Certificate not visible in IIS server post import Read More »

workflow not visible in Profiler in Plugin Registration Tool

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 I was conducting a training where I was doing a demo on how to debug a Custom Workflow activity step using the profiler in plugin registration tool. So here I was explaining …

workflow not visible in Profiler in Plugin Registration Tool Read More »

You need a Dynamics 365 Security role to continue – Error when user is having only team security role 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 The behavior explained in this blog has changed a little with introduction of new Azure AD Group teams in Dynamics 365 April 2019 release. To know more about it, click here. Recently I …

You need a Dynamics 365 Security role to continue – Error when user is having only team security role in dynamics 365 Read More »

The user does not have read permissions to a secured field 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 Dynamics CRM never ceases to throw surprises to me and this even applies to the functionalities which were introduced way back in CRM 2011. Recently in a session I was demoing field security …

The user does not have read permissions to a secured field in Dynamics 365 Read More »

Set up Password restrictions for User Registrations in Dynamics 365 portal/ 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 I have been working on Dynamics 365 portals (previously ADX portals) for some time now and recently I got a question on how to enforce Password restrictions during user self registration or redeeming …

Set up Password restrictions for User Registrations in Dynamics 365 portal/ Powerapps portals Read More »

Show the top record from an entity list in Dynamics 365 portals/ powerapps portals using liquid

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 one more of my recent articles on ADX portals and this blog I am going to write on how to select the topmost record from an entity view using query filters. …

Show the top record from an entity list in Dynamics 365 portals/ powerapps portals using liquid Read More »

on change event in dynamics 365/ CDS editable sub-grid.

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comIt’s been some time that I wrote a blog. Been busy with the deliverable and tied up in loads of personal stuffs. However finally took out the time to pen down this small post …

on change event in dynamics 365/ CDS editable sub-grid. Read More »

Error: Object does not support property or method “setSrc” in Dynamics CRM outlook client

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 my customer integrated their Dynamics CRM with outlook client. Everything was going fine until they reported that reported that when the CRM fields for Email entity are loading in Outlook client, they …

Error: Object does not support property or method “setSrc” in Dynamics CRM outlook client Read More »

flexible autonumber solution for Dynamics 365/ CDS with uniqueness guaranteed

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 am pleased to announce the new Auto Number tool from the stable of XrmForYou.com. Before I walk you through all the features and how you can use the tool to your benefit, …

flexible autonumber solution for Dynamics 365/ CDS with uniqueness guaranteed Read More »

Update rollup field in dyanmics 365 form on-deman

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 Could not explain much about this utility with the title, so let me detail out the requirements here. Roll-up fields are great and here I am not going to talk about how it …

Update rollup field in dyanmics 365 form on-deman Read More »

Use Opportunity and leads in Interactive Service Hub 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 As a dynamics CRM consultant, you come up with variety of requirements from customers. Some we achieve easily using the OOB ways with some customizations, some others need a complex workaround and then …

Use Opportunity and leads in Interactive Service Hub in Dynamics 365 Read More »

debug javascript webresource in Dynamics 365 mobile and tablet app

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 No I am not going to put any MSDN link or try to explain how can you debug your scripts in tablet forms efficiently. After all we are in the world of interesting …

debug javascript webresource in Dynamics 365 mobile and tablet app Read More »

Delete all child records when a parent record is deleted in Dynamics 365 using Power Automate/ Microsoft Flows

Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.comHere comes another requirement and here comes Microsoft flows again to bail me out. So let’s see what the requirement was and let’s see how can we implement Microsoft flows to achieve these easily …

Delete all child records when a parent record is deleted in Dynamics 365 using Power Automate/ Microsoft Flows Read More »

Refresh Quick View form control using client/ XRM API 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.com Recently I came across a requirement where the customer needed to refresh the quick view form on an entity on change of the related field programmatically. So let me explain the requirement here. …

Refresh Quick View form control using client/ XRM API in dynamics 365/ CDS Read More »