DEV Community

Cover image for Power Virtual Agents extensions for Dynamics 365 (workaround on installation hiccups)
Holger Imbery
Holger Imbery

Posted on • Originally published at the.cognitiveservices.ninja on

Power Virtual Agents extensions for Dynamics 365 (workaround on installation hiccups)

Photo by Joshua Aragon on Unsplash

Situation

You want to use Power Virtual Agent with Dynamics 365 Customer Service, and you are trying to install the extensions to activate variables and actions.

Figure 1: Message to documentation for installing the extensions

Figure 1: Message to documentation for installing the extensions.

You are following precisely the path described in the documentation, but you get an error message saying the solution is not compatible with your environment.

In my case, all language settings are on en-US, but my tenant has a location in Germany.

Figure 2: Error Message

Figure 2: Error Message

Motivation

This article is to overcome the situation for those running into the error.

It is a "works-on-my-machine" solution and should help those who can fix it to find the root cause of it.

Workaround

Here comes a dirty workaround to get it done in between.

Open the developer tools in your browser (Edge: CTRL+SHIFT+I) and open the Network Tab. While clicking on "install", you will see an error "400"

Figure 3: error 400 while installing

Figure 3: error "400" while installing.
  • right-click on the line with the error and

  • select "Edit and Resend"

  • Search for the Body of the "POST" Request.

Figure 4: Body of "POST" Request

Figure 4: Body of "POST" Request
  • copy the body to an editor and

  • find the "countryCode"; mine was set to DE,

Figure 5: countyCode

Figure 5: countryCode
  • exchange the countryCode to "US"
"countryCode" : "US"

Enter fullscreen mode Exit fullscreen mode
  • copy it back to developer tools and

  • Click on the send button.

You will then recognize a result code "200" in the status line.

If you close the installation popup and go straight to the environment you want to install the extensions to, you will see that this "fix" was successful.

Figure 6: Successful installing the extensions.

Figure 6: Successfully installing the extensions.

Figure 7: installed variables

Figure 7: installed variables.

Figure 8: Installed actions.

Figure 8: Installed actions.

Conclusion

Do not give up when something unexpected happens. Find the root cause with the tools you have and give a first thought a try.

Top comments (0)