Skip to main content

Notifications

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans