Skip to content

Instantly share code, notes, and snippets.

View eliotharper's full-sized avatar

Eliot Harper eliotharper

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GTL Test
</title>
</head>
<body>
%%[
var @reservationData,
@eliotharper
eliotharper / getColumns.xml
Created May 2, 2016 02:32
Retrieves all columns for a defined Data Extension in Salesforce Marketing Cloud
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<fueloauth xmlns="http://exacttarget.com">insertAccessTokenHere</fueloauth>
</soapenv:Header>
<soapenv:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>DataExtensionField</ObjectType>
<Properties>Name</Properties>
@eliotharper
eliotharper / request.xml
Last active September 10, 2018 20:53
Update Email Address for existing Subscriber on Salesforce Marketing Cloud
<!--
Use the following cURL command to execute this request:
curl -XPOST -H "Content-type: text/xml; charset=utf-8" -H "SOAPAction: Update" -d @request.xml https://webservice.s7.exacttarget.com/Service.asmx
Replace 's7' with your SOAP endpoint as required
-->
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<fueloauth xmlns="http://exacttarget.com">insertAccessTokenHere</fueloauth>
@eliotharper
eliotharper / gist:2def7fbe16a296c0bdfc
Created February 10, 2015 19:42
Interaction not Activating
{
"id": "09124684-75af-4ea3-8fc3-a3ef86169dfa",
"key": "019a05b8-c581-2500-1c56-bb22bc6751bd",
"name": "Sausage Update",
"lastPublishedDate": "0001-01-01T00:00:00",
"description": "",
"version": 1,
"workflowApiVersion": 1,
"createdDate": "2015-02-10T13:33:31.453",
"modifiedDate": "2015-02-10T13:39:19.78",
@eliotharper
eliotharper / gist:b45f1257bf73537cc8ee
Created February 9, 2015 16:40
traceevents search response
{
"took":6,
"timed_out":false,
"_shards":{
"total":32,
"successful":32,
"failed":0
},
"hits":{
"total":6,
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<wsa:Action>RetrieveResponse</wsa:Action>
@eliotharper
eliotharper / interactions
Created January 12, 2015 20:52
retrieve all Interaction methods from Service Discovery Document
HOST: https://www.exacttargetapis.com
GET https://www.exacttargetapis.com/interaction/v1/interactions/rest
Content-Type: application/json
Authorization: Bearer [insert-accessToken-here]