Hot answers tagged

3 votes

Rest API to return all Terms and their GUID

You could just use the pnp cmdlet Get-PnPTerm to get all Terms and its GUID under specific termsets. It's very easy. Read here for more: https://docs.microsoft.com/en-us/powershell/module/sharepoint-...
Michael Han's user avatar
  • 5,181
3 votes

Can I get the Term Label/Name for my Managed Metadata column value using REST API?

There is a known bug where single select taxonomy terms will not return the expanded/human readable label. If you can change your field to multi-select they will expand correctly. Of course that ...
Rothrock's user avatar
  • 3,010
3 votes

Sharepoint Structural navigation- inserting query string in the url is not getting affected

Write code as below: string url = " http://sitecollection/page.aspx>k=hr"; string title = "HR"; SPNavigationNodeCollection quickLaunch = web.Navigation.QuickLaunch; SPNavigationNode newnode = new ...
Gautam Sheth's user avatar
  • 30.8k
2 votes

Create Term using JSOM

You may need to manually refresh the cache; if you are trying to use the term immediately after creating it then it may not have had enough time to propagate. If you are using JSOM, try adding a call ...
Chris Odegard's user avatar
2 votes

What is the right KQL syntax to query for all documents with property in managed metadata term hierarchy?

I've had good success with this tutorial So if the guid for Sales and Marketing is c8a43f13-5ea1-45f2-b46d-3a1986a1cbd7 this would get all things tagged with a child of that. owstaxIdItemType:"GPP|#...
Rothrock's user avatar
  • 3,010
2 votes

Add values to a Multiple Metadata column via SQL

Add a pipe e.g. '|' to the list 'Qualifications;BSc|BA'
user3428422's user avatar
2 votes
Accepted

Do WssId:s ever change?

I think you can use it for long time as long as that term is exist in the term stores. as this property "A 32-bit integer that uniquely identifies the list item containing the taxonomy field in a list"...
Waqas Sarwar MVP's user avatar
2 votes

Rest API to return all Terms and their GUID

The rest 2.1 API supports CRUD operations on the TermStore. There is an useful write-up of accessing the terms located here: https://www.c-sharpcorner.com/blogs/sharepoint-managed-metadata-services-...
Tim Perry's user avatar
2 votes

How to Iterate the Terms using Termset Id in sharepoint 2013?

There are couple options you can try. You can call TermSet.GetAllTerms() method to return all terms under that TermSet. Another approach you can try is to use recursive function to enumerate ...
Verona Chen's user avatar
1 vote
Accepted

Can't create site term group as site administrator

Seems like this has indeed changed. I was able to reproduce the behavior you described. I also managed to find a workaround to create the term group/term set as site collection admin using the ...
Paul Lucas's user avatar
  • 4,256
1 vote

Is storing the Address as Custom Property for the our Customer term-set a valid/recommended approach

Managed metadata is very powerful but still limited tool, due to: SharePoint REST api still does not fully support MMS columns; Using taxonomy fields in CSOM or PowerShell are also not ...
ECM4D's user avatar
  • 1,962
1 vote

Is storing the Address as Custom Property for the our Customer term-set a valid/recommended approach

As a quick reply since there no much time to list all the details, In a simple words : You can apply your logic in Power Automate =>(When a new contact is created, then check the Customer Name and ...
AIMEN BOULAHIA's user avatar
1 vote

Method to get term URL in taxonomy in SharePoint TermStore using PnP JS library

Check Term.LocalCustomProperties._Sys_Nav_TargetUrl My debug screenshot: Update: The interface defined in pnpsp. import { taxonomy, ITermStore, ITermSet, ITerms, ITermData, ITerm } from "@pnp/sp-...
Lee's user avatar
  • 4,271
1 vote
Accepted

SPFx - List out all labels within a Term Set (Term store)

Sample test code for your reference. public componentDidMount() { var store: ITermStore = taxonomy.termStores.getByName("Taxonomy_hAIlyuIrZSNizRU+uUbanA=="); var set: ITermSet = store....
Lee's user avatar
  • 4,271
1 vote

Migrate a term from sharepoint on-premises to sharepoint online, to have same name & GUID

I am afraid that we cannot keep the same GUID of the terms as the on -premise term when creating terms in SharePoint online. We can download a copy of the import file, edit the import file by using ...
Amy_MSFT's user avatar
  • 2,946
1 vote
Accepted

Can I get the Term Label/Name for my Managed Metadata column value using REST API?

You are missing the Request digest. It is necessary for POST requests. Modify the CAML query as per your requirement. Modify code as below: var body = { 'query':{ '__metadata': {...
Gautam Sheth's user avatar
  • 30.8k
1 vote

Event receiver for EditTermProperties.aspx

As a short answer: No! there is no event receiver to handle the terms The Event receiver is available for the below level events: Site/ Web Level Events (SPWebEventReceiver). List Level Events (...
Mohamed El-Qassas MVP's user avatar
1 vote
Accepted

SharePoint Hosted App >> Unable to create termset

Looks like your app doesn't have permission to write data to the term store. To provide permission , go to the Appmanifest.xml file and provide write permission the Taxonomy scope. Deploy the app ...
Gautam Sheth's user avatar
  • 30.8k
1 vote
Accepted

How to Iterate the Terms using Termset Id in sharepoint 2013?

In C# Server object model, you can try it as below: TaxonomySession taxonomySession = new TaxonomySession(site); TermStore termstore = taxonomySession.DefaultSiteCollectionTermStore; Guid ...
Gautam Sheth's user avatar
  • 30.8k
1 vote

Get the label name of a term through JSOM

When you enable Managed navigation for a site , the navigation node title is stored as a local custom property named _Sys_Nav_Title . So if you want to get this data from JSOM you could use below ...
Unnie's user avatar
  • 8,809
1 vote

How to pass term guid to CSWP through query string

You need to pass the value in query string like this: locationtag=%230TermGUID* replace TermGUID above with the guid of the Term
Jagjot's user avatar
  • 21
1 vote

Can I retrieve nesting level of term without navigating all parents?

I don't know if it is exactly usable in your situation, but maybe it helps: In PowerShell you can use the GetPath() method and count the semicolons. Example: Root      \...
Tom131's user avatar
  • 11
1 vote

Create Term using JSOM

Below is the function I use and it creates Creates the new term under root itself (Term set node) Works on any page as all the dependencies are loaded within the script function create(termName) { ...
Ananda Prasad Bandaru's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible