Skip to content

Instantly share code, notes, and snippets.

@mc-doc
Created April 25, 2018 20:29
Show Gist options
  • Save mc-doc/4ff9ac6b800fe155ec5b8b76efa61f6c to your computer and use it in GitHub Desktop.
Save mc-doc/4ff9ac6b800fe155ec5b8b76efa61f6c to your computer and use it in GitHub Desktop.
soap sample on retrieving_the_email_folder_hierarchy.htm
<soap:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>DataFolder</ObjectType>
<Properties>Client.ID</Properties>
<Properties>Name</Properties>
<Properties>ID</Properties>
<Properties>ObjectID</Properties>
<Properties>ContentType</Properties>
<!--Parent Details-->
<Properties>ParentFolder.ContentType</Properties>
<Properties>ParentFolder.ID</Properties>
<Properties>ParentFolder.ObjectID</Properties>
<Properties>ParentFolder.Name</Properties>
<Filter xsi:type="SimpleFilterPart">
<Property>ContentType</Property>
<SimpleOperator>equals</SimpleOperator>
<Value>email</Value>
</Filter>
<QueryAllAccounts>true</QueryAllAccounts>
</RetrieveRequest>
</RetrieveRequestMsg>
</soap:Body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment