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

Patch Term Store column not working

I have a Term Store column in my list and I wanna make it accept new terms directly. I set the term store too accept valuse and it works fine in the default SharePoint form but in the PowerApps it need the "Path" function.

 

I followed the instructions in this blog post/video:

https://powerusers.microsoft.com/t5/News-Announcements-Formerly/Saving-to-SharePoint-Managed-Metadat...

But it keeps throwing an error: (The type of this argument 'MyField' does not match the expected type 'Table' . Found type 'Record')

 

Is this function changed or depricated and what are the alternatives?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Patch Term Store column not working

Hi @Hisham ,

Could you please share a bit more about your Patch function?

Does the "MyField" represents the Managed Metadata type column in your SP List?

Have you enabled the "Allow Multiple values" option for the Managed Metadata column in your SP list?

 

Based on the issue that you mentioned, it seems to tell that the "MyField" field (Managed Metadata) is required to provide a Table value, but you provide a record value.

According to the issue that you mentioned, I think you have enabled "Allow Multiple values" option for the Managed Metadata column in your SP List, is it true?

 

I have made a test on my side, please consider modify your formula as below:

Patch(
           'YourSPList',
            Defaults('YourSPList'),
            {
                 Title: TitleText.Text,
                 YourMetadataColumn: Table({              /* <-- Modify your formula here */
                                              '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedTaxonomy",
                                               TermGuid: DataCardValue.Selected.TermGuid,
                                               WssId: DataCardValue.Selected.WssId,
                                               Label: DataCardValue.Selected.Label,
                                               Path: DataCardValue.Selected.Path,
                                               Value: DataCardValue.Selected.Value
                                     })
            }
)

Note: The DataCardValue represents the Metadata ComboBox within your Edit form.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Patch Term Store column not working

Hi @Hisham ,

Could you please share a bit more about your Patch function?

Does the "MyField" represents the Managed Metadata type column in your SP List?

Have you enabled the "Allow Multiple values" option for the Managed Metadata column in your SP list?

 

Based on the issue that you mentioned, it seems to tell that the "MyField" field (Managed Metadata) is required to provide a Table value, but you provide a record value.

According to the issue that you mentioned, I think you have enabled "Allow Multiple values" option for the Managed Metadata column in your SP List, is it true?

 

I have made a test on my side, please consider modify your formula as below:

Patch(
           'YourSPList',
            Defaults('YourSPList'),
            {
                 Title: TitleText.Text,
                 YourMetadataColumn: Table({              /* <-- Modify your formula here */
                                              '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedTaxonomy",
                                               TermGuid: DataCardValue.Selected.TermGuid,
                                               WssId: DataCardValue.Selected.WssId,
                                               Label: DataCardValue.Selected.Label,
                                               Path: DataCardValue.Selected.Path,
                                               Value: DataCardValue.Selected.Value
                                     })
            }
)

Note: The DataCardValue represents the Metadata ComboBox within your Edit form.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,933)