Basic Retrieves via WSProxy
The WSProxy() object offers several retrieve options, depending on the level of complexity you need. The simplest option takes the type of object as the first parameter, and an array of object property names to retrieve.
This example returns the first page of DataExtensions without any filtering. The number of items per page varies depending on item type being requested and your account configuration.
The response is an object with four properties from the APiObjects SOAP items. In addition to the standard response properties, retrieved responses include the HasMoreRows property. If this property is set to true, there are more items to be returned. To retrieve the entire data set, perform one or more requests using pagination.
To filter the list of data extensions returned, add a third parameter to the function that contains a retrieve filter query.
This filter specification is identical to the filter used by the SSJS Core library.
This example includes a simple filter looking for DataExtension items where the CustomerKey is “ArtistsDE”.
This example includes a complex filter looking for DataExtension items where the CustomerKey is “ArtistsDE” or the Name is “LikeCounter”.
This example uses a parameter called queryAllAccounts to retrieve data from all accounts.