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-...
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 ...
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 ...
2
votes
Accepted
Import term set with labels
Unfortunately you cannot import labels using OOB import functionality. I recommend using Lapointe.SharePoint.PowerShell.wsp found here and here to do the import. It supports also labels.
You can do ...
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|#...
2
votes
Add values to a Multiple Metadata column via SQL
Add a pipe e.g. '|' to the list
'Qualifications;BSc|BA'
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"...
2
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 ...
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 ...
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 ...
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 ...
1
vote
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-...
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-...
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....
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 ...
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': {...
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 (...
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 ...
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 ...
1
vote
Accessing Terms in Term Store using JSOM in Sharepoint 2013
Loading SharePoint TermStore is very easy. you have load default terms and then have to get the term store by name. and also you can get additional properties of the term store. you can get more ...
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 ...
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
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 \...
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)
{ ...
1
vote
Accepted
How i know if it is last term in hierarchy
You can make use of properties Terms or TermsCount. This property provides the list of immediate Terms. So in your case you can use following logic
if(term.Terms == null || term.Terms.Count == 0)
...
1
vote
Accepted
How to iterate through all Groups, TermSets, Terms and all Sub Terms
You can use Script Created by http://blog.falchionconsulting.com/index.php/downloads/
There is a cmdlet that allows to export terms into an XML file and another cmdlet that allows importing from xml ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
term × 87term-store × 38
2013 × 26
term-set × 23
managed-metadata × 20
taxonomy × 14
sharepoint-enterprise × 11
sharepoint-online × 10
sharepoint-server × 10
development × 8
navigation × 6
powershell × 4
client-object-model × 4
javascript × 3
document-library × 3
search × 3
csom × 3
sharepoint-rest-api × 3
caml-query × 3
2010 × 2
column × 2
event-receivers × 2
jsom × 2
pnp-powershell × 2
import × 2