GetSites, not surprisingly, are used to retrieve any information about sites. In many installations, you do not really have anything to say about sites in Perfion, but in case you do, GetSites-method is available.
GetSites
Parameters
Name
Mandatory
Description
Channel
Yes
The channel you want sites from must be supplied.
Keys
No
The list of KeyField values for the sites you want fetched.
IncludeMappings
No
Specifies which mappings should be included. If nothing is specified all mappings are included.
ExcludeMappings
No
Specifies which mappings should be excluded. If nothing is specified it is assumed to that no mappings are excluded.
ForcedBinaryOutputKind
No
How binaries are output is controlled on the mapping. This parameter overrides the mapping and forces binaries to be output. Possible values are None, Url, File and Embedded.
IncludeModificationDates
No
When set to true, modification dates will be output on all elements in result.
IncludePerfionNamesOnFields
No
When set to true, the name of the feature from which a field comes from is added to output.
IncludePerfionItemIdsOnSelectables
No
When set to true, the id of a selectable feature output to a Field will be added to the output.
RemoveUnwantedFeaturesByConfiguration
No
When set to true, a wild-card mapping will only return Features/Fields which are configured for each individual item.
TimeZone
No
Available from Perfion 4.7 this parameter allows you to control in which time zone that is used to output modification dates when IncludeModificationDates is enabled.
If this parameter is not supplied, the time zone supplied in Settings will be used (See section Timezone). If no time zone is supplied here either, the time zone of the Perfion Database will be used. This was also the time zone used by the EC API in earlier versions of Perfion.
All parameters supported by GetSites are working same as the same named parameter in GetProducts and GetCategories.
Note: GetSites fetches only root-item being of type “Catalog”. Neither Virtuals or Normals are fetched. If your root-items got the wrong type you can use “Convert”-function in the Perfion interface.