Skip to main content
Document Definitions may use FlexiLayouts that need to be periodically updated. When you update a FlexiLayout in one Document Definition, you may want to update it in all the other Document Definitions where it is used. To achieve this, use the LoadFlexiLayout command, which loads a FlexiLayout from a file into Document Definition sections that were created based on a FlexiLayout. The new FlexiLayout will replace the old one.
An additional FlexiLayout will replace the old FlexiLayout only if the two have identical names.

Parameters

ParameterTypeDescription
/ProjectOptionalProject. A project can be specified by its full local path, the full path to the server hosting the project, or the name of the project on the server (the /Server parameter must be specified). If no project is specified, all the projects on the server are updated.
/ServerOptionalServer address.
/UOptionalUser name. If this parameter is not specified, Windows authentication is used.
/POptionalPassword.
/TenantOptionalTenant name.
/CertOptionalThe thumbprint of the certificate used for Mutual SSL authentication. Pass the string-encoded hash of the certificate for the server with Mutual SSL installed.
/DocumentDefinitionRequiredDocument Definition name.
/SectionOptionalSection name. Optional, if your Document Definition contains only one section that uses a FlexiLayout.
/FlexiLayoutPathOptionalThe path to the *.afl or *.txt file containing the FlexiLayout.
/MainFlexiLayoutFlagReplaces the main FlexiLayout. If this flag is not used, the additional FlexiLayout is replaced.
/RemoveOldFieldsFlagIf this flag is used, any fields related to the old FlexiLayout (that is, the fields created upon loading the old FlexiLayout) are removed when the old FlexiLayout is replaced with the new one.

Example of use

  • LoadFlexiLayout /Server="https://FCSRV" /Project="Banking_eng" /DocumentDefinition=Invoces /Section=EU_Invoces /MainFlexiLayout – Replaces the main FlexiLayout in the “EU_Invoces” section of the “Invoces” Document Definition.