Deep Linking in PowerApps

A common scenario when building apps is to enable deep linking into specific screens within your application. In the example below, we have a catalogue of devices that you can browse, look at the detail view of a particular device, and share. For this example, sharing could simply send an email with a link to a particular device. To enable this scenario, let’s start with how you would construct a URL in power apps:

https://web.powerapps.com/apps/{appId}?{query}

The appId is the unique Guid number representing this app. To get the appId, you will need to save the app to the cloud, and go to web.powerapps.com and navigate to the 'Details' page:

The query can be an arbitrary key value pair. In our case let’s use machineId=x where x is the device id of the product we want to share. As an example here, the URL for the device with machineId = 1.

Next, let’s add the logic to deep link into the detail screen if we detect that the app was launched with the machineId parameter as part of the URL. For that, we will insert a timer control in the home screen, and add the following to the 'OnTimerEnd' property: