XML export
See also: Object to server xml (Value resolver), Export (Event action)
Value resolver – Abstract
Purpose: Returns the content of an XML export for the reference object as text (string).
The XML export value resolver returns the content of an XML export for the reference object as text (string). The input value is ignored.
For a single entity as input value the output text corresponds exactly to the content that the ribbon command 'Show Export/XML' (see Available commands) outputs in a new browser tab.
The return value is mostly (often exactly) the same as the return value of an Object to server xml value resolver that is passed the reference object as an input value.
►NOTE◄ The XML export value resolver is not available in a Client workflow.
Differences between XML export and 'Server XML'
Differences in content between the return value of the XML export value resolver and a 'Server XML' for the same reference object (see Object to server xml) are due to the special processing by the ExportManager, from which only the XML export value resolver obtains its return value.
The XML export value resolver returns exactly the XML structure that an Export event action with the same reference object passes to the called profile.
The Object to server xml value resolver returns the XML structure that a Profile call value resolver with the same input value or a Call profile event action with the input value passes as a reference object to the called profile.
Example: For Documents, the 'Server XML' does not include the file content (documentContent), as this can be very extensive. When an XML export is performed, the ExportManager includes the corresponding 'Content' object in the XML.
Configuration
The XML export value resolver processes the reference object and ignores the input value.
The configuration does not use any parameters.
Example
An event handler shall display the XML 'raw data' of all address contacts stored in the address of the Company of session that belong to the Contact type 'Employee' (EMPLOYEE) via Show alert event action.
With this function, authorized users should be able to view the data entered into the company account via an interface without having to map all address characteristics in the input form for Company accounts.
Configuration:
In an event handler, a For each loop event action is parameterized as shown on the right:
|
|
Runtime example: Message with address data for an employee 'Jane Doe-Average'.
The XML export shows all filled fields of the contact address stored in the company account, regardless of whether they are displayed in the data input form for the company account.
Specifically, the e-mail address stored in the 'Match code' field (accMatchCode) could be of interest here (see selection in screenshot), which can be copied from the displayed 'Alert' to the clipboard, for example.