forked from lesleyhiggins/sfmc-data-views
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoupon
63 lines (63 loc) · 2.83 KB
/
Coupon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<fueloauth>{{accessToken}}</fueloauth>
</soapenv:Header>
<soapenv:Body>
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<Objects xsi:type="ns2:DataExtension" xmlns:ns2="http://exacttarget.com/wsdl/partnerAPI">
<CustomerKey>Coupon Data View</CustomerKey>
<Name>Coupon Data View</Name>
<Description>Mimics the Coupon Data View</Description>
<IsSendable>false</IsSendable>
<IsTestable>false</IsTestable>
<Fields>
<Field xsi:type="ns2:DataExtensionField">
<CustomerKey>Name</CustomerKey>
<Name>Name</Name>
<Label>Name</Label>
<IsRequired>true</IsRequired>
<IsPrimaryKey>false</IsPrimaryKey>
<FieldType>Text</FieldType>
<MaxLength>50</MaxLength>
</Field>
<Field xsi:type="ns2:DataExtensionField">
<CustomerKey>ExternalKey</CustomerKey>
<Name>ExternalKey</Name>
<Label>ExternalKey</Label>
<IsRequired>true</IsRequired>
<IsPrimaryKey>false</IsPrimaryKey>
<FieldType>Text</FieldType>
<MaxLength>50</MaxLength>
</Field>
<Field xsi:type="ns2:DataExtensionField">
<CustomerKey>Description</CustomerKey>
<Name>Description</Name>
<Label>Description</Label>
<IsRequired>true</IsRequired>
<IsPrimaryKey>false</IsPrimaryKey>
<FieldType>Text</FieldType>
<MaxLength>50</MaxLength>
</Field>
<Field xsi:type="ns2:DataExtensionField">
<CustomerKey>BeginDate</CustomerKey>
<Name>BeginDate</Name>
<Label>BeginDate</Label>
<IsRequired>true</IsRequired>
<IsPrimaryKey>false</IsPrimaryKey>
<FieldType>Date</FieldType>
</Field>
<Field xsi:type="ns2:DataExtensionField">
<CustomerKey>ExpirationDate</CustomerKey>
<Name>ExpirationDate</Name>
<Label>ExpirationDate</Label>
<IsRequired>true</IsRequired>
<IsPrimaryKey>false</IsPrimaryKey>
<FieldType>Date</FieldType>
</Field>
</Fields>
</Objects>
</CreateRequest>
</soapenv:Body>
</soapenv:Envelope>