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

Notifications

Announcements

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 386
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
    153,073 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
    386 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard