I'm running SOAP advanced search through search_service_requests.js, and while the following output it sends looks good, it returns all asset types.
Also, the limit is ignored too, with dozens of results being returned.
Is there a problem with the following request?
var assets = ['page_standard','calendar_event_single'], limit = 10, format = '%asset_assetid%', root = 12345, statuses = [2,4,8,16,32,64,128,256], searchParams = '...', // omitted from post as long and irrelevantsoapBody = AdvancedSearch(assets,'','OR',limit,format,root,'OR',statuses,searchParams,'FALSE'),
soapRequest = constructSOAPRequest(soapBody, soapURL);
send(wsdl,soapRequest,function(response){
console.log(response);
});
Translates to:
<SOAP-ENV:Body> <ns1:AdvancedSearch> <AssetTypes>page_standard</AssetTypes> <AssetTypes>calendar_event_single</AssetTypes> <FieldLogic>OR</FieldLogic> <Limit>10</Limit> <ResultFormat>%asset_assetid%</ResultFormat> <RootIDs>12345</RootIDs> <RootLogic>OR</RootLogic> <Statuses>2</Statuses> <Statuses>4</Statuses> <Statuses>8</Statuses> <Statuses>16</Statuses> <Statuses>32</Statuses> <Statuses>64</Statuses> <Statuses>128</Statuses> <Statuses>256</Statuses> <SearchFields> <SearchTerm>test</SearchTerm> <WordLogic>AND</WordLogic> <DataSources> <FieldType>Standard</FieldType> <StandardOption> <FieldName>name</FieldName> </StandardOption> </DataSources> </SearchFields> <ExcludeRootNodes>FALSE</ExcludeRootNodes> </ns1:AdvancedSearch> </SOAP-ENV:Body>
Matrix 4.16.2
Mac OS X 10.9.2
Chrome 35.0.1916.153
Thanks for any help :-)