TrustCenterAddNewSigners
Sends document with the list of persons to Trust Center.
Syntax
TrustCenterAddNewSigners("documentField","creator","signersTable")
TrustCenterAddNewSigners("documentField","creator","signersTable","PartialSigning")
TrustCenterAddNewSigners("documentField","creator","signersTable","PartialSigning","mapping")
Function arguments
- Document – (UNKNOWN) Document to sign. It can be value of document field or AttId of attachment
- Creator – (UNKNOWN) User that will be set as a person who send documents to sign
- TableName – (String) Name of the table with signers list.
- PartialSigning – (Object) [Optional] If true then signing process has to be finished manually.
- TableFieldsMapping – (Object) [Optional] Mapping of fields from table with signers list. If empty string then default mapping is used. Signers list have to contains columns with names (not display names): FirstName, LastName, CompanyRole, Company, Email, Phone
Return value
This function returns String. Returns empty string if new signers were successfully sent to TrustCenter, otherwise returns error description if something went wrong.
Examples
Example 1: This will add people listed in Signers table Trust Center with current user as a creator
TrustCenterAddNewSigners([Agreement], CurrentUser(), "Signers")
Example 2: This will add people listed in Signers table Trust Center with current user as a creator. Names of the fields from Podpisujący table are in polish so they are mapped in map variable. Parameter „partialSigning” is set to true, so signing process must be completed manually.
map.FirstName="Imię" map.LastName="Nazwisko" map.CompanyRole="Stanowisko" map.Company="Spółka" map.Email="Adres email" map.Phone="Telefon" TrustCenterAddNewSigners([Umowa], CurrentUser(), "Podpisujący", "true", map)