SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.02k forks source link

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

Open arunakshi opened 2 years ago

arunakshi commented 2 years ago

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

Additional environment details

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

                    <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.

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.