Skip to main content
added 4 characters in body
Source Link
sfdcfox
  • 501.8k
  • 21
  • 473
  • 828

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

DataFolder ID --> Description ParentFolder.Description Client.ID --> ParentFolder.CustomerKey Name ContentType ParentFolder.Name ParentFolder.ID ObjectID ParentFolder.ObjectID--> ParentFolder.Name equals FOLDER NAME AND ContentType equals dataextension false
<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>

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

DataFolder ID --> Description ParentFolder.Description Client.ID --> ParentFolder.CustomerKey Name ContentType ParentFolder.Name ParentFolder.ID ObjectID ParentFolder.ObjectID--> ParentFolder.Name equals FOLDER NAME AND ContentType equals dataextension false

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>
Source Link
user5105
  • 151
  • 3
  • 15

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?

DataFolder ID --> Description ParentFolder.Description Client.ID --> ParentFolder.CustomerKey Name ContentType ParentFolder.Name ParentFolder.ID ObjectID ParentFolder.ObjectID--> ParentFolder.Name equals FOLDER NAME AND ContentType equals dataextension false