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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Inventory management w...
Power Apps
Answered

Inventory management with Barcode

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys,

 

I'm struggling to finish this function in PowerApps and I need your help. Basically, when I use the scan function for Inventory Management app, if the code exists in SharePoint List, it will be navigated to the Product Details page. If not, it will show a new EditForm for users to add a new product. Here is the screenshot of the Homepage, the function to show the existing product works well, however for the nonexisting product, I don't know how to navigate that. 

Home screenHome screen

 

Here is my OnScan function: Set(TheRecord, LookUp('Capella Asset Management', Barcode = BarcodeScanner4.Value)); Navigate(product_details, ScreenTransition.Cover)

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @Anonymous,

     

    I guess you need to build in a scenario where BarcodeScanner4.Value is not in 'Capella Asset Management':

     

    If(
    	IsEmpty(
    		LookUp('Capella Asset Management',
    		Barcode = BarcodeScanner4.Value
    	),
    	Notify(
    		"This barcode is not found", 
    		NotificationType.Error,
    		5000
    	),
    	Set(
    		TheRecord, 
    		LookUp(
    			'Capella Asset Management',
    			Barcode = BarcodeScanner4.Value
    		)
    	);
    	Navigate(
    		product_details, 
    		ScreenTransition.Cover
    	)
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for responding so quickly, appreciated that. I just want to ask where can I put this function? In the OnScan or the search box? Thanks a lot!!

  • Verified answer
    BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @Anonymous ,

     

    This code is written to replace the code you posted, so for the OnScan property.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard