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
Super User III
Super User III

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

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

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

@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
Post Prodigy
Post Prodigy

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

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
Post Prodigy
Post Prodigy

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

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
Super User III
Super User III

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

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
Post Prodigy
Post Prodigy

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

See the printscreen:

Highlighted
Super User III
Super User III

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

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

LineCentroDeCusto.Selected
Highlighted
Post Prodigy
Post Prodigy

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

Doesnt work my friend 😞

Highlighted
Super User III
Super User III

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

What type of SharePoint column is it?
Highlighted
Post Prodigy
Post Prodigy

Re: WHY I CANT SAVE MY CARD IN SAHREPOINT LIST?

Its a choice

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,124)