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 / Scan functionalition n...
Power Apps
Answered

Scan functionalition not working at first update

(0) ShareShare
ReportReport
Posted on by 8

When i first open my app and use the barcode scanner it appears to be working properly but doesn't patch correctly to SharePoint.  My code is as follows for my patch.

 

ForAll(
collectMultiScan,
Patch(
'AMT Vehicle Results',
{
'Equipment Type': EquipmentDropdown.Selected.Result,
Location: LocationDropdown.Selected.Result,
'QR Code': If(
'Manual entry'.Text = Blank(),
QRCode,
'Manual entry'.Text
),
Date: Now(),
Who: User().FullName,
'1) Defroster / Heater': Radio2_7.Selected.Value,
'2) Headlights': Radio2_8.Selected.Value,
'3) Tail lights': Radio2_9.Selected.Value,
'4) Stop lights': Radio2_10.Selected.Value,
'5) Backup lights': Radio2_11.Selected.Value,
'6) Flasher lights': Radio2_12.Selected.Value,
'7) Backup alarm': Radio2_13.Selected.Value,
'8) Horn and sirens': Radio2_14.Selected.Value,
'9) Slip-resistant steps and platforms': Radio2_15.Selected.Value,
'10) Tires / rims': Radio2_16.Selected.Value,
'11) Suspension': Radio2_17.Selected.Value,
'12) Windshield wipers': Radio2_18.Selected.Value,
'13) Windshield washer fluid reservoir': Radio2_19.Selected.Value,
'14) Automatic transmission dipstick': Radio2_20.Selected.Value,
'15) Engine oil filler cap': Radio2_21.Selected.Value,
'16) Secondary fuel filter assembly': Radio2_22.Selected.Value,
'17) Power steering fluid reservoir': Radio2_23.Selected.Value,
'18) Brake fluid reservoir': Radio2_24.Selected.Value,
'19) Engine coolant reservoir': Radio2_25.Selected.Value,
'20) Air filter assembly': Radio2_26.Selected.Value,
'21) Engine oil dipstick': Radio2_27.Selected.Value,
'22) Power distribution box': Radio2_28.Selected.Value,
'23) Record any defects or repairs needed.': TextInput1.Text
}
);

Categories:
  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @amstyes ,

     

    I don't see any issue in your code but change the If condition as below:

    'QR Code': If(
     IsBlank(Trim('Manual entry'.Text)),
     QRCode,
     'Manual entry'.Text
     ),

     
    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard