Start an Import Definition

Import data into your Marketing Cloud Engagement account programmatically by using the Perform method on an import definition.

Code Example 

This sample SOAP envelope triggers an import job by specifying the customer key of the import definition.

1<s:Envelope
2  xmlns:s="http://www.w3.org/2003/05/soap-envelope"
3  xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing"
4  xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
5  <s:Header>
6    <a:Action s:mustUnderstand="1">Perform</a:Action>
7    <a:To s:mustUnderstand="1">https://YOUR_SUBDOMAIN.soap.marketingcloudapis.com/Service.asmx</a:To>
8    <fueloauth xmlns="http://exacttarget.com">YOUR_ACCESS_TOKEN</fueloauth>
9  </s:Header>
10  <s:Body
11    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
13    <PerformRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
14      <Options></Options>
15      <Action>start</Action>
16      <Definitions>
17        <Definition xsi:type="ImportDefinition">
18          <ObjectID xsi:nil="true"></ObjectID>
19          <CustomerKey>2043</CustomerKey>
20        </Definition>
21      </Definitions>
22    </PerformRequestMsg>
23  </s:Body>
24</s:Envelope>

See Also