Connect Structure
- 1 Arguments
- 1.1 TemplateId: Template selection
- 1.2 TemplateTags: Template selection
- 1.3 LanguageLcid: Language selection
- 1.4 DocumentLocation: Selection of an existing document
- 1.5 ProfileId: Selection of the profile
- 1.5.1 By profile id
- 1.5.2 By profile name
- 1.6 ThemeId
- 1.7 OrganizationId: Selection of the organizational unit
- 1.7.1 By organization id
- 1.7.2 By query
- 1.8 Version: Document version selection
- 1.9 Editor: Mode selection (for Type Data)
Arguments
The Connect arguments can be used to define template, language, profile, organsiation unit and other parameters for the call.
<OneOffixxConnectBatch>
<Entries>
<OneOffixxConnect>
<Arguments>
...this is where the arguments belong
</Arguments>
...
</OneOffixxConnect>
</Entries>
</OneOffixxConnectBatch>
TemplateId: Template selection
The template for document processing is selected via the TemplateId. For specification the exact GUID must be passed.
<TemplateId>6bb49520-1ebd-4f68-bb5f-02f46a9e1ec8</TemplateId>
TemplateTags: Template selection
<TemplateFilter>
<Tag>Tag1</Tag>
<Tag>Tag2;Tag3;Tag4</Tag>
</TemplateFilter>
AND links are defined within a tag element separated by semicolons, OR links are defined by multiple tag elements. The above example shows all templates tagged with Tag1 or Tag2, Tag3 and Tag4. If there are multiple templates that match the filter criteria or if neither a TemplateTag nor a TemplateId is specified, a selection dialog opens through which the user can select the desired template.
TemplateTags can also be used on the server side. If there are several templates that match the filter criterion, the first entry is always taken. The order is not guaranteed!
LanguageLcid: Language selection
LanguageLcid is used to set the document language for processing. An exact LCID must be specified. The most used LCIDs are:
LCID | Tag | Language |
---|---|---|
1031 | de-DE | German - Germany |
2055 | de-CH | German - Switzerland |
1033 | en-US | English - United States of America |
2057 | en-GB | English - United Kingdom |
4108 | fr-CH | French - Switzerland |
1036 | fr-FR | French - France |
2064 | it-CH | Italian - Switzerland |
1040 | it-IT | Italian - Italy |
DocumentLocation: Selection of an existing document
The DocumentLocation can be used to update existing documents or to merge two existing documents.
ProfileId: Selection of the profile
The ProfileId element can be used to select a specific profile. Without specifying an explicit profile the current profile of the primedocs client will be used or on server side the first profile of the respective user. There are two ways to select the profile:
By profile id
By profile name
This function is only available on the client side.
ThemeId
This function is not available for "classic" templates. You can find more information here.
A specific theme can be selected via the ThemeId element. If no explicit theme is specified, the default theme is used by the organizational unit.
OrganizationId: Selection of the organizational unit
This option allows to use any (released) organization in the Profile data and Themes document functions. If the specified organization is found, the corresponding organization data is used for the call. It can be searched for in two ways.
By organization id
By query
In the field name, all configured fields for organizational units can be used. If more than one organization is found, the first one will be taken, whereby no order is guaranteed.
The syntax is: { field name = value }
IMPORTANT
The found organizational unit replaces the actually configured organizational unit for the currently selected profile during document creation.
In combination with the TemplatePicker, any profile can be selected, but despite the selection, the organizational data from the Connect call will be used.
Version: Document version selection
The version specification can be used to control exactly which version of the template is opened in the editor. If called with filter or without TemplateId, the TemplatePicker can also be used for this.
The following values are possible:
Value | Id type | Version of the selected template | Resolved version of the dependencies | TemplatePicker |
---|---|---|---|---|
Published | Template-ID | Published | Published | ✓ |
PublishedDraft | Template-ID | Published | Draft | ✓ |
Draft | Template-ID | Draft | Draft | ✓ |
SpecificDraft | Versions-Template-Id | Specific | Draft | Â |
SpecificPublished | Versions-Template-Id | Specific | Published | Â |
Editor: Mode selection (for Type Data)
If Connect is used with Type Data, this parameter can be used to specify that the template should be opened in editor mode in Word in order to place the fields.
Â
PrimeSoft AG, Bahnhofstrasse 4, 8360 Eschlikon, Switzerland