Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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.

Sample Mappings

 

 

Sample Data

 

 

Sample request

<Execute method="GetSites" refreshconfiguration="true">
  <Parameter id="Channel" value="My Channel" />
</Execute>

Sample result

<Response>
  <Result>
    <Channel name="My Channel">
      <Sites>
        <Site id="1084">
          <Fields>
            <Field name="SiteId">Site A</Field>
            <Field name="Name" culture="en-US">My Site</Field>
          </Fields>
        </Site>
        <Site id="1172">
          <Fields>
            <Field name="SiteId">Site B</Field>
            <Field name="Name" culture="en-US">My US Site</Field>
          </Fields>
        </Site>
      </Sites>
    </Channel>
  </Result>
</Response>

Table 1: GetSites-method.

All parameters supported by GetSites are working same as the same named parameter in GetProducts and GetCategories.

  • No labels