cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User

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

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

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

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

See the printscreen:

Highlighted
Super User
Super User

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

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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