Print

TrustCenterSetSigningPeriod()

The TrustCenterSetSigningPeriod() function changes a signing period (an expiration date) of the document. In most cases this function will be used to extend this date. To use this function you must fulfill these requirements:

  • the document is not yet signed or rejected,
  • retention date is not set or has not passed yet.

Syntax

TrustCenterSetSigningPeriod(Document, SigningPeriod)
TrustCenterSetSigningPeriod(Document, SigningPeriod, IsSendingReminder)
TrustCenterSetSigningPeriod(Document, SigningPeriod, IsSendingReminder, EnableSlidingRetention)

Function arguments

  • Document – (Object) a document sent to sign in Trust Center. It can be value of the document field or the attachment identifier;
  • SigningPeriod – (DateWithTime) [Optional] a date after document signing period is going to expire;
  • IsSendingReminder – (Boolean) [Optional] an option to send an email reminder. False by default;
  • EnableSlidingRetention – (Boolean) [Optional] this parameter allows to change a retention date if signing period is greater than retention date instead of returning an error. False by default.

Return value

This function returns String.
The TrustCenterSetSigningPeriod() function returns empty string if the signing period was successfully set. Returns the error description if something went wrong.

Examples

Example 1

A document signing period will expire after one month from now if signature process is not completed.

nextMonth = DateAdd("month", CurrentDateTime(), 1);
[Status]=TrustCenterSetSigningPeriod([Document],nextMonth)

Example 2

This code allows to extend a retention date if it is lesser than the signing period.

TrustCenterSetSigningPeriod([Document], [SigningPeriodDate], false, true);

 

Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?