Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>fs</string>
<string>fsi</string>
<string>fsx</string>
</array>
@MartinBodocky
MartinBodocky / gist:8056791
Created December 20, 2013 15:58
How to create and get Field Choice in SharePoint 2013 by REST
GetFieldsFromCollectionREST = function (restUrl, properties) {
var values = [];
select = "$select="
if (properties.length > 1)
select += _(properties.slice(1)).reduce(function (memo, item) { return memo + "," + item }, properties[0]);
else
select += properties[0];
if (restUrl.indexOf('?') > -1)
restUrl = restUrl + "&" + select;
else
@MartinBodocky
MartinBodocky / gist:7984439
Last active March 10, 2020 17:50
Get Calendar recurrent events by CSOM from SharePoint 2013.
GetItemsFromCalendarAsmx = function (webUrl, calendarGuid) {
wsURL = webUrl + "_vti_bin/Lists.asmx";
var xmlCall =
"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> <soap:Body>" +
"<GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>" +
"<listName>" + calendarGuid + "</listName>" +
"<query>" +
"<Query>" +