cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gorilla_8
Level: Powered On

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
mdevaney
Level 8

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
mdevaney
Level 8

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
Level: Powered On

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
Level: Powered On

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"

mdevaney
Level 8

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
Level: Powered On

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

See the printscreen:

mdevaney
Level 8

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
Level: Powered On

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

Doesnt work my friend 😞

mdevaney
Level 8

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

What type of SharePoint column is it?
Gorilla_8
Level: Powered On

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

Its a choice

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 330 members 6,021 guests
Please welcome our newest community members: