Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharePoint Rest #10119

Open
1 of 9 tasks
freserovski opened this issue Feb 17, 2025 · 0 comments
Open
1 of 9 tasks

SharePoint Rest #10119

freserovski opened this issue Feb 17, 2025 · 0 comments
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@freserovski
Copy link

Target SharePoint environment

SharePoint Online

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

SharePoint REST API

Developer environment

Windows

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
  • SPFx version
  • Node.js version
  • etc

Describe the bug / error

Hi

We have one problem on SharePoint Online. We want to call rest endpoint to get back values from SharePoint list item trough rest: https://TENANT.sharepoint.com/sites/SITEABC/_api/web/lists/getbytitle('LIST_TITLE')/items(900)When we get back field values for item, most of things works ok, there is just problem with some taxonomy fields. Instead of label, we get back WSSID

<d:ObjectTest m:type="SP.Taxonomy.TaxonomyFieldValue"><d:Label>1234</d:Label><d:TermGuid>abcef112-b947-4d43-a5b7-07539129f57f</d:TermGuid><d:WssId m:type="Edm.Int32">1234</d:WssId></d:ObjectTest>

but it should be like:

<d:ObjectTest m:type="SP.Taxonomy.TaxonomyFieldValue"><d:Label>LABEL_NAME</d:Label><d:TermGuid>abcef112-b947-4d43-a5b7-07539129f57f</d:TermGuid><d:WssId m:type="Edm.Int32">1234</d:WssId></d:ObjectTest>

Steps to reproduce

https://TENANT.sharepoint.com/sites/SITEABC/_api/web/lists/getbytitle('LIST_TITLE')/items(900)When we get back field values for item, most of things works ok, there is just problem with some taxonomy fields. Instead of label, we get back WSSID

<d:ObjectTest m:type="SP.Taxonomy.TaxonomyFieldValue"><d:Label>1234</d:Label><d:TermGuid>abcef112-b947-4d43-a5b7-07539129f57f</d:TermGuid><d:WssId m:type="Edm.Int32">1234</d:WssId></d:ObjectTest>

but it should be like:

<d:ObjectTest m:type="SP.Taxonomy.TaxonomyFieldValue"><d:Label>LABEL_NAME</d:Label><d:TermGuid>abcef112-b947-4d43-a5b7-07539129f57f</d:TermGuid><d:WssId m:type="Edm.Int32">1234</d:WssId></d:ObjectTest>

Expected behavior

Values on fields are corrupted. Instead of Term set label we get back the term set WSSID in label property

<d:ObjectTest m:type="SP.Taxonomy.TaxonomyFieldValue"><d:Label>1234</d:Label><d:TermGuid>abcef112-b947-4d43-a5b7-07539129f57f</d:TermGuid><d:WssId m:type="Edm.Int32">1234</d:WssId></d:ObjectTest>

but it should be like:

<d:ObjectTest m:type="SP.Taxonomy.TaxonomyFieldValue"><d:Label>LABEL_NAME</d:Label><d:TermGuid>abcef112-b947-4d43-a5b7-07539129f57f</d:TermGuid><d:WssId m:type="Edm.Int32">1234</d:WssId></d:ObjectTest>

@freserovski freserovski added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

1 participant