Can you detect the client type in visual studio tools?
Ultimately, I'm looking to create links as buttons on GP forms to open external web sites, but the way i do it on a desktop client (using an old fashioned ShellExecuteA) doesn't work in the web client.
i'd hope to detect the webclient in code to be able to alter the method used to open the web site.
Any suggestions?
Thanks
Finally found this:
community.dynamics.com/.../355733
int iClientType = Dynamics.Forms.SyVisualStudioHelper.Functions.DexRuntimeGetClientType.Invoke(); String sWebSite = ; if (iClientType == 1) //Desktop Client Process.Start(sWebSite); else //Web Client Dynamics.Forms.SyVisualStudioHelper.Functions.DexUtilityLaunchUrl.Invoke(sWebSite);
Does what i needed
Hi Jeff
You can also use the Dynamics.Functions.IsWebClient.Invoke() function
This is what we use from Dexterity.
Regards
David
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 683 Most Valuable Professional
André Arnaud de Cal... 563 Super User 2025 Season 2
Sohaib Cheema 398 User Group Leader