Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Selects content from a Perfion database via the Perfion API Query Syntax. Output can be generated both as Xml and in the neutral Table format.
Properties
From | Must contain (or reference) a connection string, in one of the following ways:
|
To | Name of the Output Data Source. |
Script | The Perfion API Query used to query the Perfion database. The API-Query can also be defined dynamically by including parameter references. The parameter values are evaluated in the same way as the script method FillTemplate. The Perfion Query need to follow the XML encoding and chars like ' need to be replaced with ' The method System.Security.SecurityElement.Escape(xmlString) can do the encoding. Remark from Perfion 2023R1: If you combine parameters with other curly brackets you need to escape the curly brackets with double curly brackets like: <Clause id='{{ID' operator='=' value='{=$Color}' /> |
Parameters
@Format | Specifies the output format of the Command (if relevant). Note: This parameter is ignored if a Mapping is defined. In which case data will always be delivered in Table-format (as defined by the Mapping). Recommendation: Use a mapping. This parameter was included before it was possible to create a mapping. A mapping is much more powerful as it allows you to select all data and attributes. There are several format options which can be used to change the output format to Table-format. This format will only contain the data values from Perfion, and not all the enhanced information from the XML found in attributes and metadata about features etc. Moreover, based on which option is chosen one can choose how the data table headers and data will be handled:
XML-output: |
@Filter | Filter the result of the selected data. See Command Maps & Parameters for more information. |
@Order | Order the result of the selected data. See Command Maps & Parameters for more information. |
@ExcludeBinaryRelativePath | When using one of the Table output formats, this parameter will, when set, exclude the relative path for binaries (files and images). This parameter is available from Perfion 2023-R1 SR2 |
@BinaryRelativePath | This parameter allows you to specify a relative path (defaults to '\'. ) to be outputted for binary features, when using one of the Table output formats. Output of a relative path may be omitted using the ExcludeBinaryRelativePath parameter. This parameter is available from Perfion 2023-R1 SR2 |
Mapping
From | Name of a feature, property or feature + property from Perfion as requested by the Perfion API Query. Here are some examples:
Above are just examples. Refer to the API Query Reference guide for all the possible Property names attribute names and which ones are relevant for the current Item and features of different datatypes (e.g. string, number, images, files etc.) For Multi-valued features, the values will be concatenated and separated by ';' If a feature or property name is specified that does not exist in Perfion or is not delivered by the API Query it will be ignored, i.e. the mapping will not fail. This is by design as the data from Perfion can vary a lot. |
To | Name of the Header as it should be called in the Output table |
Script | Note: This Command does not apply scripting. If you want to use scripting in relation to values, then pass the result to the SELECT or SELECT.UNIQUE command. |
Guide
Most of the information found in the Perfion Xml output can be easily mapped by the above mapping. However, if for some reason you need to use some of the other information from the Perfion Xml output, then you will need to setup this Command to deliver the output in Xml-format, and then pass the result to one of the Commands that select data from Xml format.
Table of Contents |
---|