cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

I HAVE TRIED TO SAVE THE CARD IN SHAREPOINT LIST USING A TABLE, BUT I CANT SAVE THIS.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Aha, so it’s a a choice column. That requires a special technique. Check out this forum post by @Meneghino  You will need to take this example of his and apply your own field names

Patch(MyList, MyItem, {MyLookupColumn: {Id: Dropdown1.Selected.ID, Value: Dropdown1.Selected.Title, '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"}})

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Solved-patching-to-SharePoint-choic...

View solution in original post

14 REPLIES 14
Highlighted
Super User III
Super User III

@Gorilla_8
Please share more info:
* Post a copy of the specific error received word for word
* Tell us what property you have put the code in
* Tell is what item you have put the code in

Once you have shared this information I will try to assist you further.
Highlighted

I need to save a record DropDown in  SP list, by using patch, i dont know how to determine the type of the "record"

 

FOllow the print: 

Highlighted

Follow another screen of my error, i know its the type of the card, I THINK, but i need know which one.

The error: Patch error: Does not match expected type "Record". Found type "text"

Highlighted

Centro de Customer is likely a ComboBox control which brings in the record. You will need to use some code just like this

DataCardValue_ComboBox.Selected.CentroDeCustomer

My code will not be exactly the same as what you need. You must change the names to match your own
Highlighted

See the printscreen:

Highlighted

I misread your error. It said must be record but found text instead. Try this.

LineCentroDeCusto.Selected
Highlighted

Doesnt work my friend 😞

Highlighted

What type of SharePoint column is it?
Highlighted

Its a choice

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,118)