Skip to content

Using SharePoint REST API with RenderListDataAsStream for getting Taxonomy metadata terms synonyms  #7924

@arunakshi

Description

@arunakshi

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

SharePoint REST API

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version: All versions of Chrome, Firefox, Edge.
  • SPFx version: 1.9.1 & 1.10.0
  • Node.js version : >= 10

Issue description

I am trying to find a way to get Taxonomy term label synonyms for list items.
Today I am getting only the Term Labels and Term Ids of the Taxonomy term for the list item currently using RenderListDataAsStream endpoint and selecting the Taxonomy fields via ViewXml.
${this.webUrl}/_api/web/Lists(guid'${this.listId}')/RenderListDataAsStream

<View Scope=\"RecursiveAll\"> <ViewFields> <FieldRef Name="Department"/> <FieldRef Name="_LikeCount"/> <FieldRef Name="_CommentCount"/> </ViewFields> <Query> <Where> <Eq> <FieldRef Name="ID"/> <Value Type="Number">${listItemId}</Value> </Eq> </Where> </Query> <RowLimit Paged="TRUE">1</RowLimit> </View>

I need to get now somehow the synonyms for the term label. I didn't find anything to get synonyms from list item metadata. The only way I found is loading entire termset terms along with labels and synonyms.

Is there anyway to get list item metadata along with taxonomy field labels and synonyms. Any ideas would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active worktype:questionQuestion... if answered, will be tagged as such.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions