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 Specialist
Solution Specialist

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_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,320)