Check to see whether the Account can be sent a Document, e.g., that at least one Account Client has an Email Address when attempting to send an Email Document.

<para> Only Email or SMS Documents will ever return False since this function does not validation information such as whether a Client has a valid Postal Address. </para> <para> This does not check whether the current User has permission to send the Document or whether Email or SMS details are configured in this database. </para>

Syntax

finAccountFunctions.CanSendDocument(accountId, documentId, checkAccountClientShouldSendDocument, [message])

Parameters

NameTypeOptionalByRefDescription
accountId String The Account Id.
documentId String The Document Id.
checkAccountClientShouldSendDocument Boolean Indicates whether a check should be made using the finAccountClient.ShouldSendDocument method to determine whether an Account Client should be excluded from any checks. This utilises the flags on the finDocument such as SendToAccountJoints and SendToAccountGuarantors.
message String Optional ByRef If the Document cannot be sent, this contains details of the reason why.

Return Value

Boolean

A Boolean value.

Member of:
finAccountFunctions
Namespace:
Intersoft.finSupport6
Assembly:
finSupport6, Version=6.0.3
Target Framework:
.NET 9.0