Forum Discussion
Shone Karthanal
Jan 07, 2022Copper Contributor
API endpoint to get term store custom property
Does anyone know if there is a way to get custom properties (shown in screenshot below) for a term in the Sharepoint online term store?
TottoPro
Oct 06, 2023Copper Contributor
Hi Shone Karthanal ,
i spotted your question while searching for a solution getting these properties in a SharePoint WebPart.
Following the Microsoft documentation for the SharePoint Rest API ( https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint-rest-requests#select-fields-to-return ) in some cases "[...] these properties are not included in the default query, and must be explicitly requested".
For my SharePoint situation i was successfull with this url: https://[tenant-name].sharepoint.com/sites/[sitename]/_api/v2.1/termStore/termSets/[setId]/terms/[termid]?$SELECT=*,properties,localProperties
Maybe this helps you finding your solution.