SP.Publishing.Navigation.NavigationTermSetItem.createTerm Method (sp.publishing)
Creates a new SP.Publishing.Navigation.NavigationTerm object (sp.publishing) object with the specified termName.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.Publishing.Navigation.NavigationTermSetItem.createTerm(termName, linkType, termId)
Parameters
termName
The name for the new NavigationTerm object. The name to be stored in the NavigationTerm.taxonomyName property.linkType
The type of link for the new NavigationTerm object as specified by the SP.Publishing.Navigation.NavigationLinkType enumeration (sp.publishing) enumeration.termId
A unique identifier for the new NavigationTerm object.
Return value
SP.Publishing.Navigation.NavigationTerm
The newly created object.