Skip to main content

Notifications

Announcements

No record found.

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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans