cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
golfnutt82
Super User
Super User

Patch is not writing to my list

When I use patch , try to write the value of  the dropdown result into Item List , that doesnt work , no value was written into the list , no error message. But other fields can be successfully write into Item List.
The dropdown is "Result"

golfnutt82_0-1664970081529.png


I can write the selected value into a collection: Cltn_Item

golfnutt82_1-1664970210107.png

golfnutt82_3-1664970295583.png

golfnutt82_4-1664970337121.png

golfnutt82_5-1664970384115.png

But when I use patch to try and write the value of the "Result" dropdown into the list item, it doesnt work. No value was written and no error message but other fields can be successfully written into the list item.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@golfnutt82 

 

In last screenshot, of the Patch, the arrow is pointing to Reason.

 

However, Result is missing entirely in the screenshot.

 

If you modify your Patch to include Result too, does it work then?

View solution in original post

3 REPLIES 3

@golfnutt82 

 

In last screenshot, of the Patch, the arrow is pointing to Reason.

 

However, Result is missing entirely in the screenshot.

 

If you modify your Patch to include Result too, does it work then?

BCBuizer
Super User
Super User

Hi @golfnutt82 ,

 

Can you confirm the column type of Result is Choice?

 

If so, you can either set the Items property of the dropdown to:

Choices(ReturnComponentsItem.Result)

 

or change the Result part of the Patch function to:

 

Result: {
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id: 1,
    Value: txt_result.Selected.Value
}


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Your absolutely correct and missed adding Result. 
Also, the choice value "Scap" is missing the "R" so the values were not matching.
Updated the patch and everything works.
This is what happens when one puts in 12+ hours staring at a PC, ugh

 

Thank you

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,201)