Skip to content

Instantly share code, notes, and snippets.

@joshmcrty
Created December 8, 2014 21:46
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 joshmcrty/fa91d88aea749d25d266 to your computer and use it in GitHub Desktop.
Save joshmcrty/fa91d88aea749d25d266 to your computer and use it in GitHub Desktop.
Get a SharePoint Site Column's Properties via REST
( function( $ ) {
$.ajax({
url: "http://<site-url>/_api/web/fields/getbytitle('Display Name of Field')",
type: "GET",
headers: { "accept": "application/json; odata=verbose" },
success: successHandler,
error: errorHandler
});
function successHandler( data ) {
console.log( data );
}
function errorHandler( data ) {
console.log( data );
}
})( jQuery );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment