Using SharePoint REST API with RenderListDataAsStream for getting Taxonomy metadata terms synonyms
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
- [X] 💥 Internet Explorer
- [X] 💥 Microsoft Edge
- [X] 💥 Google Chrome
- [X] 💥 FireFox
- [X] 💥 Safari
- [X] mobile (iOS/iPadOS)
- [X] 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.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.