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

Gorilla_8 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"

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

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

See the printscreen:

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

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

Doesnt work my friend 😞

Super User
Super User

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

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

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

Its a choice

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (4,345)