web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

USD: Creating Hosted Control for a desktop application with dynamic arguments

(0) ShareShare
ReportReport
Posted on by

Hi all, we are trying to access from the USD to a desktop application that has different arguments when executed (or launched from command line). The arguments are:

-user

-password

-window to open

With this arguments filled correctly the desktop application authenticate with the user and open in the desired window. The window to open depends on data from the USD context, and we have user and password of this application in the USD context too.

The problem comes when creating the hosted control, as the field "arguments" in the definiton does not allow replace parameters. We have tried different approaches:

  • From the toolbar launch the action "ExecuteShell" from "CRMGolbalManager" hosted control.  These allow to fill the arguments but launch outside USD
  • Create a Hat Application. We don't know if is there any way to change the arguments in the initstring dynamically.
  • Create an "application adapter" and change the initstring. We can change the initstring, but we have found that the Hosted Control is loaded when USD starts and does not get the changes made when the events of the adapter are launched.
  • Create a Custom hosted  control and change the initstring to "lie" to the control and launch the desktop application instead itself. But that does'nt work either.

Has anybody knows how to deal with this requirement? Any idea would be gratefully received!! :-D

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans