Skip to content

Instantly share code, notes, and snippets.

Andrew Connell andrewconnell

Block or report user

Report or block andrewconnell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andrewconnell
andrewconnell / WorkflowManifest.xml
Created Oct 28, 2014
Create an Integrated Workflow App for SharePoint Online before the Office Developer Tools Support it.
View WorkflowManifest.xml
<SPIntegratedWorkflow xmlns="http://schemas.microsoft.com/sharepoint/2014/app/integratedworkflow">
<IntegratedApp>true</IntegratedApp>
</SPIntegratedWorkflow>
@andrewconnell
andrewconnell / AAD+H App Manifest
Created Nov 27, 2014
This a hypothetical signature for a Office 365 / SharePoint deployment service for my AAD+H concept outlined here http://aconn.me/1y3klra
View AAD+H App Manifest
public interface IAppDeploymentServiceReceiver {
public AppDeploymentServiceResult DeployApp(AppDeploymentManifest manifest,
AppProperties props) {
var result = new AppDeploymentServiceResult();
// set result
return result;
}
}
public class AppDeploymentServiceResult {
@andrewconnell
andrewconnell / SpRestBatchRequestCreate
Last active Mar 15, 2019
Sample SharePoint Online REST Batch Request Creating Items & Querying List
View SpRestBatchRequestCreate
POST https://aconn-fe6c88f31b8e0b.sharepoint.com/sites/dev/SpRestBatchSample/_api/$batch HTTP/1.1
Host: aconn-fe6c88f31b8e0b.sharepoint.com
Connection: keep-alive
Content-Length: 1903
Accept: */*
Origin: https://aconn-fe6c88f31b8e0b.sharepoint.com
X-Requested-With: XMLHttpRequest
X-RequestDigest: 0x3F168AD947C57DCB851D5EFF0F7A9D8CFBB1DF3D1F574BC7D0AF2C7E38DF5AF28C9F311B1ADB8447D965F037657B4DF572C1F9DD139D9E6AE3A565B659134FA5,30 Nov 2014 12:55:26 -0000
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36
Content-Type: multipart/mixed; boundary="batch_45473b4e-5ce5-409d-dd5a-3d60082df906"
@andrewconnell
andrewconnell / SpRestBatchResponseCreate
Created Dec 1, 2014
Sample SharePoint Online REST Batch Response Creating Items & Querying List
View SpRestBatchResponseCreate
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: multipart/mixed; boundary=batchresponse_4cc2e5b3-bf5b-42d7-9de3-9a381313d178
Expires: Sat, 15 Nov 2014 12:56:24 GMT
Last-Modified: Sun, 30 Nov 2014 12:56:24 GMT
Server: Microsoft-IIS/7.5
Set-Cookie: rtFa=tuVED+yNm9wcX/FhwoP4LWBIKTDdkU57FJQFUXDB1HxxIOrPF9UmWGJK8MVlRWuyRhJtagkeIb0pEXuAse2dC1/5o/af/PZO9gWU4QGu7hkePjAytr5+owuHuWBwX7kpkGglQn541INJB4Z1g1xKJGuDvtyA8XIJLv0m/ZrhQQbhc6/jz3LsriZs9Amy+fV3iDSHgdBLZ+Y89khmU2G+qwVcZQqJvBC0Yp0pJrYbj58QY5KldnzEBUwo6GTMruGkdQxFgPWHt/G4EKCeilSyHfvg8V2HK6TAKFo7K9zWwCopntObFEpy45Eumke/RVDFSyd5BlI/KhhEFszw9dCzqR/EIWHQAV0uBxcWsKlou7LaHo/tSN03W3vFwb1rIFiZIAAAAA==; domain=sharepoint.com; path=/; HttpOnly
Set-Cookie: FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+RmFsc2UsMGguZnxtZW1iZXJzaGlwfDEwMDM3ZmZlODBjYjNkNjJAbGl2ZS5jb20sMCMuZnxtZW1iZXJzaGlwfG1lQGFuZHJld2Nvbm5lbGwuY29tLDEzMDYyMjU3NjYxMjkxNTAwNCxGYWxzZSxrL3IxRXN3WG1RMk1rYmY0eFhQWXZoUVZ0clBnTWcwZVo0NTh4aDErd3RwbFk5L1RIYXFObUtuaW1BZThDMzh0b3hLNmdSSU
@andrewconnell
andrewconnell / SpRestBatchRequestDelete
Last active May 20, 2019
Sample SharePoint Online REST Batch Request Deleting Items & Querying List
View SpRestBatchRequestDelete
POST https://aconn-fe6c88f31b8e0b.sharepoint.com/sites/dev/SpRestBatchSample/_api/$batch HTTP/1.1
Host: aconn-fe6c88f31b8e0b.sharepoint.com
Connection: keep-alive
Content-Length: 3616
Accept: */*
Origin: https://aconn-fe6c88f31b8e0b.sharepoint.com
X-Requested-With: XMLHttpRequest
X-RequestDigest: 0x3F168AD947C57DCB851D5EFF0F7A9D8CFBB1DF3D1F574BC7D0AF2C7E38DF5AF28C9F311B1ADB8447D965F037657B4DF572C1F9DD139D9E6AE3A565B659134FA5,30 Nov 2014 12:55:26 -0000
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36
Content-Type: multipart/mixed; boundary="batch_f7ee2f04-d4bb-4501-c8c8-af782b0ceace"
@andrewconnell
andrewconnell / SpRestBatchResponseDelete
Created Dec 1, 2014
Sample SharePoint Online REST Batch Response Deleting Items & Querying List
View SpRestBatchResponseDelete
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Transfer-Encoding: chunked
Content-Type: multipart/mixed; boundary=batchresponse_924c62ae-c627-46ca-9fa9-e7a01b54ace5
Expires: Sat, 15 Nov 2014 12:56:27 GMT
Last-Modified: Sun, 30 Nov 2014 12:56:27 GMT
Server: Microsoft-IIS/7.5
Set-Cookie: rtFa=tuVED+yNm9wcX/FhwoP4LWBIKTDdkU57FJQFUXDB1HxxIOrPF9UmWGJK8MVlRWuyRhJtagkeIb0pEXuAse2dC1/5o/af/PZO9gWU4QGu7hkePjAytr5+owuHuWBwX7kpkGglQn541INJB4Z1g1xKJGuDvtyA8XIJLv0m/ZrhQQbhc6/jz3LsriZs9Amy+fV3iDSHgdBLZ+Y89khmU2G+qwVcZQqJvBC0Yp0pJrYbj58QY5KldnzEBUwo6GTMruGkdQxFgPWHt/G4EKCeilSyHfvg8V2HK6TAKFo7K9zWwCopntObFEpy45Eumke/RVDFSyd5BlI/KhhEFszw9dCzqR/EIWHQAV0uBxcWsKlou7LaHo/tSN03W3vFwb1rIFiZIAAAAA==; domain=sharepoint.com; path=/; HttpOnly
Set-Cookie: FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+RmFsc2UsMGguZnxtZW1iZXJzaGlwfDEwMDM3ZmZlODBjYjNkNjJAbGl2ZS5jb20sMCMuZnxtZW1iZXJzaGlwfG1lQGFuZHJld2Nvbm5lbGwuY29tLDEzMDYyMjU3NjYxMjkxNTAwNCxGYWxzZSxrL3IxRXN3WG1RMk1rYmY0eFhQWXZoUVZ0clBnTWcwZVo0NTh4aDErd3RwbFk5L1RIYXF
@andrewconnell
andrewconnell / gist:c440874d5aa9d4f78eed
Last active Aug 29, 2015
Simple OData Batch Request Header
View gist:c440874d5aa9d4f78eed
POST http://[your-sharepoint-site]/_api/$batch HTTP/1.1
Host: [your-sharepoint-site-domain]
X-RequestDigest: [your-sharepoint-digest]
Content-Type: multipart/mixed; boundary=batch_36522ad7-fc75-4b56-8c71-56071383e77b
[batch-request-body]
@andrewconnell
andrewconnell / gist:92006101e6ed194f2d19
Created Dec 1, 2014
Simple OData Batch Request Intro
View gist:92006101e6ed194f2d19
Content-Type: application/http
Content-Transfer-Encoding: binary
@andrewconnell
andrewconnell / gist:99aef5684d716ae5aa14
Created Dec 1, 2014
Simple OData Batch Request Query
View gist:99aef5684d716ae5aa14
--batch_45473b4e-5ce5-409d-dd5a-3d60082df906
Content-Type: application/http
Content-Transfer-Encoding: binary
GET https://[your-sharepoint-site]/_api/web/lists/getbytitle('Drivers')/items?$orderby=Title HTTP/1.1
Host: [your-sponline-domain]
Accept: application/json;odata=verbose
@andrewconnell
andrewconnell / gist:f7a17e813aa7c4542c97
Created Dec 1, 2014
Simple OData Batch Request Changeset Header
View gist:f7a17e813aa7c4542c97
--batch_45473b4e-5ce5-409d-dd5a-3d60082df906
Content-Type: multipart/mixed; boundary="changeset_f9c96a07-641a-4897-90ed-d285d2dbfc2e"
Host: [your-sponline-domain]
Content-Length: [size in bytes of the changeset]
Content-Transfer-Encoding: binary
You can’t perform that action at this time.