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 / Scanned Item not allow...
Power Apps
Answered

Scanned Item not allowing for edit

(0) ShareShare
ReportReport
Posted on by 453
Hello,
 
I have an asset app that allows me to scan a barcode, return the item scanned and then edit the details.
 
When I scan either an Asset ID or Serial Number, the item returns correctly. However, when I try edit the item, it only works if an Asset ID has been scanned and not the Serial Number. 
 
I was wondering if anyone could spot what is causing the issue? I have added a text label to display my scanned value which does return correctly but when editing after scanning the serial number, the screen just gets stuck on 'getting data'. 
 
This is the code I'm using, if anyone can advice what I may have done wrong or knows a solution to fix it would be massively appreciated! :)
 
OnScan
Set(varScannedValue, First(Self.Barcodes).Value);
Navigate(DetailScannedWindowDevice, ScreenTransition.Fade)
 
Item
First(
    Filter(
        [@'Asset Reg - Windows Devices'],
        'Serial No.' = varScannedValue Or 'Asset ID' = varScannedValue
    )
)
 
EditButton
EditForm(EditForm1_2);
Navigate(EditScannedWindowDevice, ScreenTransition.None, {varEditScannedValue: varScannedValue})
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,399 Most Valuable Professional on at
    Hi Jap11
    Firstly try this in the Item
    LookUp(
       [@'Asset Reg - Windows Devices'],
       'Serial No.' = varScannedValue Or 'Asset ID' = varScannedValue
    )
    If that does not work (and this is a bit of an overkill) try
    With(
       {
          _ID:
          LookUp(
             [@'Asset Reg - Windows Devices'],
             'Serial No.' = varScannedValue Or 'Asset ID' = varScannedValue,
             ID
          )
       },
       LookUp(
          [@'Asset Reg - Windows Devices'],
          ID = _ID
       )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     
  • Jap11 Profile Picture
    453 on at
    Hi @WarrenBelz - your first suggestion worked, thank you very much.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard