List SFMC folder contents
Use the externalItems GraphQL query to list the contents of an SFMC folder. retrieve any lead that matches the ID and token specified in the search string.
Example request
The following example illustrates using the externalItems request to retrieve the contents of a specified data extension folder:
{
externalItems(namespace: "saleforceconnector", filter: {context: {id: "50E9A69B-C73B-4D81-B801-F9990F9EB969.DataExtensionFolder", type: "DataExtensionFolder"}}) {
edges {
node {
identity {
id
type
}
... on ExternalContent {
title
}
}
}
}
}