Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipharding/8574a6d46b6b66c77bf46e02272e5e3a to your computer and use it in GitHub Desktop.
Save phillipharding/8574a6d46b6b66c77bf46e02272e5e3a to your computer and use it in GitHub Desktop.
Get a Term by its ID with LocalCustomProperties from a Termgroup and Termstore by Name
POST https://platinumdogsconsulting.sharepoint.com/teams/PKC_EDMS_Discovery/_vti_bin/client.svc/ProcessQuery
Content-Type: text/xml
X-RequestDigest:
User-Agent:
Host:
<Request AddExpandoFieldTypeSuffix="true" ApplicationName=".NET Library" LibraryVersion="16.0.0.0" SchemaVersion="15.0.0.0" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009">
<Actions>
<ObjectPath Id="48" ObjectPathId="47"/>
<ObjectIdentityQuery Id="49" ObjectPathId="47"/>
<ObjectPath Id="51" ObjectPathId="50"/>
<ObjectIdentityQuery Id="52" ObjectPathId="50"/>
<ObjectPath Id="54" ObjectPathId="53"/>
<ObjectPath Id="56" ObjectPathId="55"/>
<ObjectIdentityQuery Id="57" ObjectPathId="55"/>
<ObjectPath Id="59" ObjectPathId="58"/>
<ObjectPath Id="61" ObjectPathId="60"/>
<ObjectIdentityQuery Id="62" ObjectPathId="60"/>
<ObjectPath Id="64" ObjectPathId="63"/>
<ObjectIdentityQuery Id="65" ObjectPathId="63"/>
<Query Id="66" ObjectPathId="63">
<Query SelectAllProperties="true">
<Properties>
<Property Name="LocalCustomProperties" ScalarProperty="true" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009" />
</Properties>
</Query>
</Query>
</Actions>
<ObjectPaths>
<StaticMethod Id="47" Name="GetTaxonomySession" TypeId="{981cbc68-9edc-4f8d-872f-71146fcbb84f}"/>
<Method Id="50" Name="GetDefaultSiteCollectionTermStore" ParentId="47"/>
<Property Id="53" Name="Groups" ParentId="50"/>
<Method Id="55" Name="GetByName" ParentId="53">
<Parameters>
<Parameter Type="String">PKC</Parameter>
</Parameters>
</Method>
<Property Id="58" Name="TermSets" ParentId="55"/>
<Method Id="60" Name="GetByName" ParentId="58">
<Parameters>
<Parameter Type="String">Document Metadata</Parameter>
</Parameters>
</Method>
<Method Id="63" Name="GetTerm" ParentId="60">
<Parameters>
<Parameter Type="Guid">{0856e209-9809-4bd6-bc1c-ce2bc9e484cb}</Parameter>
</Parameters>
</Method>
</ObjectPaths>
</Request>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment