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 / Patch with Power Apps
Power Apps
Answered

Patch with Power Apps

(0) ShareShare
ReportReport
Posted on by 161

Good day, I am new to power apps and it is giving me a headache. 🤕

I would like to update an item in a sharepoint list based on the value from a scanner input. I keep getting errors and I cannot figure out why:

Patch('PH Inventory SLOC checker', LookUp('PH Inventory SLOC checker',Title=BarcodeScanner1.Value), {SLOC: Dropdown2.SelectedText})


If I understand this correctly: Patch(List to be patched, Lookup the value in list column Title that equals tha value of barcodescanner1, update the column SLOC with the Selected text in dropdown2.)
I get these two errors no matter what I do:

Error 1:

MJGreyling_1-1629895049253.png

Error 2:

MJGreyling_3-1629895100887.png



PLEASE HELP ME!!!

 

 

Categories:
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @MJGreyling ,

     

    May be below code will help. 

    Please check the Drodown2.SelectedText if it is giving value or not.

     

    Patch('PH Inventory SLOC checker',LookUp('PH Inventory SLOC checker',Title=BarcodeScanner1.Value),{SLOC: Dropdown2.SelectedText.Value/YourRecordColumnName})
    
    
    or 
    
    UpdateIf('PH Inventory SLOC checker',ID=LookUp('PH Inventory SLOC checker',Title=BarcodeScanner1.Value).ID,{SLOC: Dropdown2.SelectedText.Value/YourRecordColumnName})

     

     

    Please click Accept as solution 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 Thumbs Up.

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

     

    Hi @MJGreyling 

    Patch('PH Inventory SLOC checker', LookUp('PH Inventory SLOC checker',Title=BarcodeScanner1.Value), {
    SLOC: Dropdown2.Selected.Value
    }
    )

     

  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    The SelectedText property of a dropdown is a record.  YOu need to specify what value you want out of the record.    Your code should probably use

     

    Dropdown2.SelectedText.Value

  • MJGreyling Profile Picture
    161 on at

    This did the trick. Thank you. At least I learned something new today! 😄

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @MJGreyling 

    Just to add a little to this for information...

    SelectedText is a deprecated property that should be avoided in new apps.  It used to be listed in the docs as deprecated, but now it no longer even appears in the docs.  So, be ready for that time when apps become broken when the property is removed.

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard