TrustCenterAddNewSigners
The TrustCenterAddNewSigners function is used to add new persons to the existing signers list in Trust Center, in order to collect their signatures.
Syntax
TrustCenterAddNewSigners("documentField","creator","signersTable")
TrustCenterAddNewSigners("documentField","creator","signersTable","PartialSigning")
TrustCenterAddNewSigners("documentField","creator","signersTable","PartialSigning","mapping")
Function arguments
- Document – (UNKNOWN) (UNKNOWN) Document to sign. Serves to identify the document in TrustCenter for which the list of signers is to be extended. It can be the value of the document field or the AttId of the 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)