Forum Discussion
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?
- Q_JaliCopper ContributorHi,
Did you eventually figure out how to achieve the above?
If so, do you mind sharing?
Much appreciated.- Shone KarthanalCopper Contributor
Q_Jali Unfortunately, i was not able to do this via Power Automate but we created an online Powershell Script (via Azure Runbook). Below is a link on how to create the runbook.
https://learn.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual
- TottoProCopper 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.