Failed to install Microsoft.VisualStudio.Component.Debugger.JustInTime (VS2017)

This week we were trying to install Visual Studio 2017 (15.3.2) but we were getting the following error:

Package ‘Microsoft.VisualStudio.Debugger.JustInTime,version=15.0.26621.2’ failed to install

Other Visual Studio components depend on this package:

  • .NET desktop development
  • .NET desktop development tools
  • Windows Workflow Foundation

ramontebar_blog_Just-In-Time debugger dependencies

Since the Windows Workflow Foundation module couldn’t be installed, I couldn’t open workflow libraries to develop Custom Workflow Activities for Dynamics 365.

SOLUTION:

The solution was as simple as updating the System Variable __PSLockDownPolicy value to 1:

ramontebar_blog___PSLockDownPolicy

This is related to the PowerShell Constrained Language Mode, see the following article for more details:

https://blogs.technet.microsoft.com/kfalde/2017/01/20/pslockdownpolicy-and-powershell-constrained-language-mode/

Basically the Visual Studio installer was trying to run a command that was not allowed based on the PowerShell Constrained Language policy.

***Thanks to my colleague Emir for his help 😉

Looking at forums, there were other suggestions like stopping the anti-virus or run the following command:

Unblock-File -path “C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Debugger.JustInTime,version=15.0.26621.2\RegisterJustInTimeDebugger.ps1”

The following discussions were talking about the same:

https://developercommunity.visualstudio.com/content/problem/27352/install-stucks-applying-debuggerjustintime.html

https://developercommunity.visualstudio.com/content/problem/24407/failed-to-install-microsoftvisualstudiocomponentde.html

https://developercommunity.visualstudio.com/content/problem/15718/incomplete-workload-net-desktop-development.html

https://developercommunity.visualstudio.com/content/problem/27400/unable-to-install-officesharepoint-workload-on-vis.html

 

 

Microsoft MVP 2017-2018

MVP_Logo_Secondary_Blue288_RGB_72ppiThis month my Microsoft MVP award has been renewed! So, definitely, a very positive month 🙂

During more than 6 years, I have enjoyed participating and collaborating with different community initiatives around Dynamics CRM and Microsoft technologies.

With Dynamics 365, there are plenty of things to do this year, so let’s carry on enjoying!

ramontebar_MVP_2017_2018

Installing the latest version of Voice of the Customer (v 9.0.x.x)

Last week I was running a new Dynamics 365 trial (v 8.2.1.289) and I wanted to use the Voice of the Customer module.

Based on the previous versions of this solution (v.8.x.x.x), I followed the same steps that I used to: Office 365 => Dynamics 365 Admin Portal => INSTANCES => Solutions, see below screenshot:


 

However, when I tried to install it from this Solutions section, the installation process just failed once and again.

After a quick call with Microsoft Support, they told me the new installation process at the APPLICATIONS tab, see below screenshot:

Once you are there, just click on MANAGE and follow the next few steps choosing your corresponding instance (whose version needs to be >=8.2). Then you can track again the installation process in the Solutions section:

Hope this saves you some time 😉

Dynamics 365 (CRM) Image Loader

This article describes how to create a simple Dynamics 365 (CRM) web resource that would allow us to display images based on a dynamics URL. This URL would be stored in an entity attribute and the name of the attribute would passed as a parameter to the web resource.

Preparing the demo for EMEA Summit 2017, I needed to display some logos and organisations images (covers) in the Account entity.

Let me show you a picture and you will immediately get what I mean:

CRMUG_EMEA_Summit2017_ImageLoader_imagesAccountForm

In our demo, we used the account entity to track the different NGOs / charities that would be part of the end solution. Each charity would have their own different logo and image cover that would be, later on, displayed in the PowerApp we also prepared.

Those images would be defined based on the following account attributes:

CRMUG_EMEA_Summit2017_ImageLoader_imageAttributesAccountForm

Solution: A simple web resource that would allow us to specify the attribute name with the URL as a parameter.

Below you can see the form definition, which got 2 web resources to host those previous images:

CRMUG_EMEA_Summit2017_ImageLoader_accountForm_webresource

If we now look at the properties of each web resource, we would see they are using the same HTML web resource behind the scene, but the parameter we are passing is different. The parameter is actually the attribute name to feed the image:

CRMUG_EMEA_Summit2017_ImageLoader_webresource_logo_parameter

And the other one:

CRMUG_EMEA_Summit2017_ImageLoader_webresource_cover_parameter

If you want to see the code of that HTML web resource, have a look at my GitHub link.

Hope you find it useful 🙂

Presenting at CRMUG Summit EMEA. Amsterdam 2017

This year I’ll be presenting at the CRMUG Summit EMEA 2017 celebrated in Amsterdam. The idea started last year when I was speaking with my Microsoft AX MVP colleague Antonio @_Gilabert_ at the MVP Summit.

CRMUG_EMEA_Summit_Amsterdam2017_Home

With Dynamics 365, CRM and AX are closer than ever, so we thought that it would be great to have a presentation together and share our experience and view with the community.

We would like to do a functional and practical session where we will show how both platforms can be integrated, in the new Dynamics 365 world, to deliver a real business scenario. Our challenge is to use the new Microsoft Flow and Common Data Service for the integration. At the moment, they are still very new and many capabilities are very limited.

Although we are still working in the demo, we are also preparing a PowerApp to improve the user experience and present how they can be useful alongside Dynamics 365 for Sales and Operations.

I would also like to say thank you to Hugo de Jesús, who is helping us a lot to prepare the presentation.

You can find more information about the schedule in this link.

We hope you enjoy the event, and of course, our session! 🙂

CRMUG_EMEA_Summit_Amsterdam2017_CRM and AX rock together

 

 

CRMUG Summit EMEA Programming Committee member – Amsterdam 2017

This year I have got the opportunity to be part of the CRMUG Summit EMEA Programming Committee. We are a group of volunteers who share some of our time and energy to help make CRMUG Summit EMEA an incredible experience for each attendee.
Some of the activities I have been helping out is with the presentations for the development track. Finding the right topics and great speakers is actually a good challenge.

For those who are attending, we hope you enjoy it!

See you soon in Amsterdam 🙂

You can find more information in the following link:

https://www.crmug.com/about-crmug/emeacommittee

Dynamics 365 (CRM) Scheduled Workflows using Microsoft Flow

Creating scheduled workflows has always been a challenge in Dynamics CRM 365. The community and ISVs have offered several original options, but there is not yet an official out-of-the-box option. This article brings another alternative to the table using Microsoft Flows.

A scheduled workflow is the one that runs at a certain arranged time and it may recur to run again after a period of time. If you want to understand more about this challenge and how our CRM community has resolved it so far, have a look at the following articles:

Microsoft Flow offers the option to create Recurrence jobs. This can be used to schedule and trigger actions in Dynamics 365, like retrieve, create or update records (see available actions). So, using this functionality you already have a good alternative to create your own scheduled workflows without development effort. You can see some examples in the following article as well as in these Dynamics 365 Flow templates.

The other alternative would be a mix solution where a recurrence Microsoft flow creates a custom Dynamics 365 “Scheduled Job” record and this triggers the corresponding Dynamics 365 workflow. The “Scheduled Job” entity would have attributes like “Process Name”, “Run as” (e.g. system user name), “Query scope” (e.g. FetchXML or view name), …, to specify what and how to run the workflow. This option would require additional development, either a plugin or a custom workflow activity to call on demand the given process, but it would also allow you to reuse the logic and capabilities you already have within Dynamics 365.

Hope you find this article useful. Looking forward to hearing your feedback.

Thanks

First look at Microsoft Dynamics 365

It has been great to see the new changes coming with Dynamics 365 (Available November 1st) during Scott Guthrie presentation at First look at Microsoft Dynamics 365.

The new Dynamics home page gives you an easy start point to join the user experience of our CRM and ERP users:

homepagedynamics365app

There we can find the different functional applications, from Sales to Operations:

homepagedynamics365app_menu

Everything has got the same look & feel:

homepagedynamics365salesapp

homepagedynamics365operationsapp

homepagedynamics365financialsapp

A key part of Dynamics 365 is the aim of joining different apps in a single ecosystem, there is where we find a seamless integration with AppSource:

homepagedynamics365appsource

We can also feel the “Mobile First, Cloud First” strategy on the mobile apps coming with Dynamics 365:

homepagedynamics365_mobileapps

The integration with Outlook carries on improving, providing more contextual information on our emails:

homepagedynamics365outlookapp_documentlinks

homepagedynamics365outlookapp_dynamics365panel

The Intelligence is another fundamental part of Dynamics 365, which covers several areas:

dynamics365_ai

The Relationship Insights is definitely one of the most AI interesting points, where we will be able to get a better view of our customers. For instance, Exchange emails from Office 365 would be joined with the Dynamics 365 emails and we would be able to understand how our relationships are doing:

dynamics365_ai_relationshipinsights

We will be able to see who has opened our emails and interact with them in a simple view:

dynamics365_ai_emailsview

As part of the analytics improvements, we have also got the just announced Customer Insights, which brings the ability to create great single customer views:

dynamics365_customerinsights

All these will be complemented by the additional services we already know: PowerApps + Microsoft Flow + Common Data Model

dynamics365_cdm

dynamics365_powerapp_powerflow