cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JamesTarver
Frequent Visitor

Use QR Scanner to navigate to an internal page on PowerApps

Hi, 

 

I want to be able to use the QR code scanner on PowerApps to be able to Navigate to a certain page within the app. I have all of the pages already created; however, I want users to be able to scan a QR code on a certain machine within our factory and it will then navigate them on the app to the relevant information page for said machine.

Is there an 'On Scan' formula I can use if I create a QR code with 'Navigate(screen)' as its property? 

Thanks in advance, 

 

James

2 REPLIES 2
KvB1
Solution Sage
Solution Sage

Basically you should use the Param function

 

You need to:

- Build the URL for your app. You find this in the details of your app (go to the overview of all your apps, verticle dots)

- Add the paramater to your URL: simply add "&ScreenID=1" or whatever paramater you think would be good to use (the part after = is the actual paramater, the part before is the indication that it will be a parameter)

 

Example: https://apps.powerapps.com/play/appID?tenantId=tenantID&ScreenID=1

 

On start in the app:

- Create a variable that is set by the URL: Set(varScreenID,Param("ScreenID"))

- If someone were to use the URL you created to open the open, varScreenID will be 1 on start

- Then you make an If function: If(varScreenID="1",Navigate(Screen1))

 

Then you just need to create a QR code for the URL. I don't know if powerapps can do it, but pretty sure there are plenty of ways to achieve this. Most phones can open a QR code from the native camera app, so I wouldn't bother making a powerapp for that either

JamesTarver
Frequent Visitor

Ah wicked, I'll give it a go. Thanks! 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,158)