ListStores

myStoreModule.ListStores([nameFilter][, ownerFilter][, timeoutInSeconds]);

myStoreModuleThe name of the Store module instance
nameFilterA STRING defining a filter to be applied to the store's name; the filter accepts the '*' wildcard character to indicate 'match anything' and '?' to match any single character; string comparisons are case-insensitive; an empty string is equivalent to '*'; OPTIONAL, defaults to '*'
ownerFilterA STRING defining a filter to be applied to the store's owner; the filter accepts the '*' wildcard character to indicate 'match anything' and '?' to match any single character; string comparisons are case-insensitive; an empty string is equivalent to '*'; OPTIONAL, defaults to '*'
timeoutInSecondsThe number of seconds to wait for the underlying SOAPCALL to complete; set to zero to wait forever; OPTIONAL, defaults to zero
Return:A ListStoresResponseRec RECORD

The ListStores function gets a list of available stores based on the provided filters.

Example:

IMPORT STD;

myStore := STD.System.Store();

// List all stores
allStores := myStore.ListStores();
OUTPUT(allStores.stores);

// List stores starting with 'App'
appStores := myStore.ListStores('App*', '*');
OUTPUT(appStores.stores);

// List stores owned by specific user
userStores := myStore.ListStores('*', 'myusername');
OUTPUT(userStores.stores);

See Also: ListStoresResponseRec