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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Powerapps Originated c...
Power Apps
Answered

Powerapps Originated client

(0) ShareShare
ReportReport
Posted on by 206

Hi-

 

I know how to determine in an app is a "Mobile" or a "Desktop" by means of using LAT & LONG to fairly accurately  determine the device.

 

However, we do like using the WINDOWS DESKTOP APP to use as our portal.  After MSFT changed its portal last year, I was forced to update exit buttons to point to our intranet and reference the link to the appID of the powerapp.

 

My question is:

 

How can I determine if the user is on a web client, or an DESKTOP app client? 

 

That answer will tell me how to write my if statement when the user press X to exit the app.  Now, one app, opens new intranet web tabs each time the desktop client user presses X, but the DESKTOP client remains open.

 

These particular apps do not use any FLOWS.

 

I am not a fan of telling the user to hit the WAFFLE, APP Commands, and press Exit if I can take care of all of this for them..

 

Thanks

 

Categories:
I have the same question (0)
  • MrAutomate Profile Picture
    206 on at

    checking in to see if anyone has a way to overcome my problem...Thanks

  • Verified answer
    MrAutomate Profile Picture
    206 on at

    HI all, it came to me today, and thought it may be helpful for anyone using the desktop and web clients in their environment:

    The EXIT() function needs to behave differently for DESKTOP or web versions.  Exit will not work for me, as I DO NOT want my users going back and seeing a list of all possible apps from the web version that may distract them...

     

    Basically, if clicked from a URL on the intranet, set variable on Appstartup to "Web Version", else,

    "Desktop Version"  Deep Linking is the solution for my use case.

     

    Here are the steps: 

     

    On App Startup:

    • If(
      Param("DeepLink") = "WebStart",
      Set(varCLientType,"Web Version"),
      Set(varCLientType,"Desktop Version")
      )
      ;
    • Locate App Web Link for your app 
      • goto https://make.powerapps.com/
      • Click the 3 dots next to your app
      • Click Details
      • Right Click WEB LINK and COPY WEB LINK
      • Paste to notepad or a work space in your app
      • Add a Parameter (see April Dunham's Video that I used)
      • Use this link as the launch method

    on my Exit Button:

     

    If(varCLientType="Desktop Version",

    Exit(),

    Launch("https://xxxxxxxxx/sites/xxxIntranet", Blank(), LaunchTarget.Replace) )

     

    My weblink became:

    https://apps.powerapps.com/play/xxxxxxxxxxxxxxxxxxxxxx?tenantId=xxxxxxxxxxxxx&DeepLink=WebStart 

     

    DeepLink=WebStart

     

    Hope that helps someone that needs to tell if it is a desktop client or web client that originated the app start

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard