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 has invalid arg...
Power Apps
Answered

(Patch has invalid arguments) Patching a SharePoint List

(0) ShareShare
ReportReport
Posted on by 93

I'm trying to patch a sharepoint list using two dropdown menus but I've been getting "Patch has invalid arguments".

 

This is my line of code for the patch button:

Patch('FST,Defaults('FST'),{'Furnace Process':drpFurnaceProcess.Selected.Result,Furnace:drpFurnace.Selected.Result})

 

The dropdown menus have these written in Item:

Furnace Process:

Sort(Distinct('Furnace Back End List','Furnace Process'),Result)

Furnace:

Filter('Furnace Back End List', 'Furnace Process' = drpFurnaceProcess.Selected.Result)

 

I've been following this tutorial (https://www.youtube.com/watch?v=Qzpjq008cBY&ab_channel=RezaDorrani) but I've gotten stuck on this part. 

 

 

Categories:
  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @charizard ,

    This item

    Furnace: drpFurnace.Selected.Result

    will not be .Result - it will be the name of the field you are displaying from the other list. So it that field was Furnace, the line would be

    Furnace: drpFurnace.Selected.Furnace

    Type in drpFurnace.Selected. and see what comes up underneath

     

    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.

    Visit my blog Practical Power Apps

  • charizard Profile Picture
    93 on at

    Hi Warren,

    I've tried drpFurnace.Selected.Furnace and it's still giving me the same error. I've tried removing that furnace line completely as well and it still says invalid patch. 

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @charizard ,

    What is the name of the field you are displaying ? That is what is required. Please have a read of this blog of mine.

  • charizard Profile Picture
    93 on at

    Furnace Process and Furnace are the names of the fields.

     

    charizard_0-1653303469801.png

     

    I have two sharepoint lists: FST and Furnace Back End List. Both lists have the Furnace Process and Furnace field. 

    The Furnace Back End List uses text for the Furnace Process and Furnace field, the FST list has them as choices.

     

  • WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    @charizard ,

    Can we rewind here please - you need to get the valid output of the Combo Box (which is why I linked my blog). This is a fundamental you will have to learn very early in your journey.

    What is the ???? in drpFurnace.Selected.????. That is the value you need and can also be obtained by typing into code drpFurnace,Selected. (note second dot) and it will come up underneath. Also what type of fields are 'Furnace Process' and Furnace ?

  • charizard Profile Picture
    93 on at

    The ???? in drpFurnace.Selected.???? is Furnace. Furnace Process and Furnace are both text type fields in my back end list (Furnace Back End list) but they are choice fields in my front end list (FST). 

  • Verified answer
    WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    @charizard ,

    That was the missing piece of information (they are Choice fields)

    Patch(
     'FST,
     Defaults('FST'),
     {
     'Furnace Process': {Value: drpFurnaceProcess.Selected.Result},
     Furnace: {Value: drpFurnace.Selected.Furnace}
     }
    )

     

    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.

    Visit my blog Practical Power Apps

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard