Skip to main content
2 of 2
added 4 characters in body
sfdcfox
  • 501.9k
  • 21
  • 473
  • 828

Retrieve Data Extension Names From A Folder - Salesforce Marketing Cloud

The SOAP API call below only displays Folder names. Does anybody know how to retrieve the list of data extension within a folder?

<Body>
    <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
        <RetrieveRequest>
             <ObjectType>DataFolder</ObjectType>
            <!--<Properties>ID</Properties> -->
            <Properties>Description</Properties>
            <Properties>ParentFolder.Description</Properties>
            <!--<Properties>Client.ID</Properties> -->
            <Properties>ParentFolder.CustomerKey</Properties>
            <Properties>Name</Properties>
            <Properties>ContentType</Properties>
            <Properties>ParentFolder.Name</Properties>
            <Properties>ParentFolder.ID</Properties>
            <!--<Properties>ObjectID</Properties>
            <Properties>ParentFolder.ObjectID</Properties>-->
            
            <Filter xsi:type="par:ComplexFilterPart" xmlns:par="http://exacttarget.com/wsdl/partnerAPI">
           <LeftOperand xsi:type="par:SimpleFilterPart">
              <Property>ParentFolder.Name</Property>
              <SimpleOperator>equals</SimpleOperator>
              <Value>FOLDER NAME</Value>
           </LeftOperand>
           <LogicalOperator>AND</LogicalOperator>
           <RightOperand xsi:type="par:SimpleFilterPart">
              <Property>ContentType</Property>
              <SimpleOperator>equals</SimpleOperator>
              <Value>dataextension</Value>
           </RightOperand>
        </Filter>
            <QueryAllAccounts>false</QueryAllAccounts>
        </RetrieveRequest>
    </RetrieveRequestMsg>
</Body>
user5105
  • 151
  • 3
  • 15