Share via


Table "Document Sending Profile"

ID 60
Namespace: Microsoft.Foundation.Reporting

Properties

Name Value
Caption Document Sending Profile
LookupPageID Page Microsoft.Foundation.Reporting."Document Sending Profiles"
DataClassification CustomerContent

Fields

Name Type Description
Code Code[20]
Description Text[100]
Printer Option
"E-Mail" Option
"E-Mail Attachment" Enum Microsoft.Foundation.Reporting."Document Sending Profile Attachment Type"
"E-Mail Format" Code[20]
Disk Enum Microsoft.Foundation.Reporting."Doc. Sending Profile Disk"
"Disk Format" Code[20]
"Electronic Document" Enum Microsoft.Foundation.Reporting."Doc. Sending Profile Elec.Doc."
"Electronic Format" Code[20]
Default Boolean
"Send To" Enum Microsoft.Foundation.Reporting."Doc. Sending Profile Send To"
Usage Enum Microsoft.Foundation.Reporting."Document Sending Profile Usage"
"One Related Party Selected" Boolean
"Combine Email Documents" Boolean
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

GetDefaultForCustomer

procedure GetDefaultForCustomer(CustomerNo: Code[20], var DocumentSendingProfile: Record "Document Sending Profile")

Parameters

Name Type Description
CustomerNo Code[20]
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"

GetDefaultForVendor

procedure GetDefaultForVendor(VendorNo: Code[20], var DocumentSendingProfile: Record "Document Sending Profile")

Parameters

Name Type Description
VendorNo Code[20]
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"

GetDefault

procedure GetDefault(var DefaultDocumentSendingProfile: Record "Document Sending Profile")

Parameters

Name Type Description
DefaultDocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"

GetRecordAsText

procedure GetRecordAsText(): Text

Returns

Type Description
Text

WillUserBePrompted

procedure WillUserBePrompted(): Boolean

Returns

Type Description
Boolean

SetDocumentUsage

procedure SetDocumentUsage(DocumentVariant: Variant)

Parameters

Name Type Description
DocumentVariant Variant

VerifySelectedOptionsValid

procedure VerifySelectedOptionsValid()

LookupProfile

procedure LookupProfile(CustNo: Code[20], Multiselection: Boolean, ShowDialog: Boolean): Boolean

Parameters

Name Type Description
CustNo Code[20]
Multiselection Boolean
ShowDialog Boolean

Returns

Type Description
Boolean

LookUpProfileVendor

procedure LookUpProfileVendor(VendorNo: Code[20], Multiselection: Boolean, ShowDialog: Boolean): Boolean

Parameters

Name Type Description
VendorNo Code[20]
Multiselection Boolean
ShowDialog Boolean

Returns

Type Description
Boolean

SendCustomerRecords

procedure SendCustomerRecords(ReportUsage: Integer, RecordVariant: Variant, DocName: Text[150], CustomerNo: Code[20], DocumentNo: Code[20], CustomerFieldNo: Integer, DocumentFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocName Text[150]
CustomerNo Code[20]
DocumentNo Code[20]
CustomerFieldNo Integer
DocumentFieldNo Integer

SendVendorRecords

procedure SendVendorRecords(ReportUsage: Integer, RecordVariant: Variant, DocName: Text[150], VendorNo: Code[20], DocumentNo: Code[20], VendorFieldNo: Integer, DocumentFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocName Text[150]
VendorNo Code[20]
DocumentNo Code[20]
VendorFieldNo Integer
DocumentFieldNo Integer

Send

procedure Send(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], ToCust: Code[20], DocName: Text[150], CustomerFieldNo: Integer, DocumentNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
ToCust Code[20]
DocName Text[150]
CustomerFieldNo Integer
DocumentNoFieldNo Integer

SendVendor

procedure SendVendor(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], ToVendor: Code[20], DocName: Text[150], VendorNoFieldNo: Integer, DocumentNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
ToVendor Code[20]
DocName Text[150]
VendorNoFieldNo Integer
DocumentNoFieldNo Integer

TrySendToPrinter

procedure TrySendToPrinter(ReportUsage: Integer, RecordVariant: Variant, CustomerFieldNo: Integer, ShowDialog: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
CustomerFieldNo Integer
ShowDialog Boolean

TrySendToPrinterVendor

procedure TrySendToPrinterVendor(ReportUsage: Integer, RecordVariant: Variant, VendorNoFieldNo: Integer, ShowDialog: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
VendorNoFieldNo Integer
ShowDialog Boolean

TrySendToEMail

procedure TrySendToEMail(ReportUsage: Integer, RecordVariant: Variant, DocumentNoFieldNo: Integer, DocName: Text[150], CustomerFieldNo: Integer, ShowDialog: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocumentNoFieldNo Integer
DocName Text[150]
CustomerFieldNo Integer
ShowDialog Boolean

TrySendToEMailGroupedMultipleSelection

procedure TrySendToEMailGroupedMultipleSelection(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, DocumentNoFieldNo: Integer, DocName: Text[150], CustomerVendorFieldNo: Integer, IsCustomer: Boolean)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocumentNoFieldNo Integer
DocName Text[150]
CustomerVendorFieldNo Integer
IsCustomer Boolean

SendToVAN

procedure SendToVAN(RecordVariant: Variant)

Parameters

Name Type Description
RecordVariant Variant

SendToPrinter

procedure SendToPrinter(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustomerNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustomerNoFieldNo Integer

SendToDisk

procedure SendToDisk(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, DocNo: Code[20], DocName: Text, ToCust: Code[20])

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocNo Code[20]
DocName Text
ToCust Code[20]

GetOfficeAddinDefault

procedure GetOfficeAddinDefault(var TempDocumentSendingProfile: Record "Document Sending Profile" temporary, CanAttach: Boolean)

Parameters

Name Type Description
TempDocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
CanAttach Boolean

ProfileSelectionMethodDialog

procedure ProfileSelectionMethodDialog(var ProfileSelectionMethod: Option, IsCustomer: Boolean): Boolean

Parameters

Name Type Description
ProfileSelectionMethod Option
IsCustomer Boolean

Returns

Type Description
Boolean

CheckElectronicSendingEnabled

procedure CheckElectronicSendingEnabled()

Events

OnAfterSend

[IntegrationEvent(True,False)]
local procedure OnAfterSend(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], ToCust: Code[20], DocName: Text[150], CustomerFieldNo: Integer, DocumentNoFieldNo: Integer, DocumentSendingProfile: Record "Document Sending Profile")

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
ToCust Code[20]
DocName Text[150]
CustomerFieldNo Integer
DocumentNoFieldNo Integer
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"

OnAfterSendCustomerRecords

[IntegrationEvent(False,False)]
local procedure OnAfterSendCustomerRecords(ReportUsage: Integer, RecordVariant: Variant, DocName: Text[150], CustomerNo: Code[20], DocumentNo: Code[20], CustomerFieldNo: Integer, DocumentFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocName Text[150]
CustomerNo Code[20]
DocumentNo Code[20]
CustomerFieldNo Integer
DocumentFieldNo Integer

OnAfterSendVendor

[IntegrationEvent(True,False)]
local procedure OnAfterSendVendor(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], ToVendor: Code[20], DocName: Text[150], VendorNoFieldNo: Integer, DocumentNoFieldNo: Integer, DocumentSendingProfile: Record "Document Sending Profile")

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
ToVendor Code[20]
DocName Text[150]
VendorNoFieldNo Integer
DocumentNoFieldNo Integer
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"

OnAfterSendToEMail

[IntegrationEvent(False,False)]
local procedure OnAfterSendToEMail(var DocumentSendingProfile: Record "Document Sending Profile", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, DocNo: Code[20], DocName: Text[150], ToCust: Code[20], DocNoFieldNo: Integer, ShowDialog: Boolean)

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
ToCust Code[20]
DocNoFieldNo Integer
ShowDialog Boolean

OnAfterSendToEmailVendor

[IntegrationEvent(False,False)]
local procedure OnAfterSendToEmailVendor(var DocumentSendingProfile: Record "Document Sending Profile", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, DocNo: Code[20], DocName: Text[150], ToVendor: Code[20], VendorNoFieldNo: Integer, ShowDialog: Boolean)

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
ToVendor Code[20]
VendorNoFieldNo Integer
ShowDialog Boolean

OnBeforeCheckShowProfileSelectionMethodDialog

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckShowProfileSelectionMethodDialog(var ProfileSelectionMethod: Option, AccountNo: Code[20], IsCustomer: Boolean, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProfileSelectionMethod Option
AccountNo Code[20]
IsCustomer Boolean
Result Boolean
IsHandled Boolean

OnBeforeGetDefaultSendingProfileForCustomerFromLookup

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultSendingProfileForCustomerFromLookup(CustomerNo: Code[20], var DocumentSendingProfile: Record "Document Sending Profile", var IsHandled: Boolean)

Parameters

Name Type Description
CustomerNo Code[20]
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
IsHandled Boolean

OnBeforeGetDefaultSendingProfileForVendorFromLookup

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultSendingProfileForVendorFromLookup(VendorNo: Code[20], var DocumentSendingProfile: Record "Document Sending Profile", var IsHandled: Boolean)

Parameters

Name Type Description
VendorNo Code[20]
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
IsHandled Boolean

OnBeforeGetRecordAsText

[IntegrationEvent(False,False)]
local procedure OnBeforeGetRecordAsText(DocumentSendingProfile: Record "Document Sending Profile", var RecordAsText: Text, var Handled: Boolean)

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
RecordAsText Text
Handled Boolean

OnBeforeOnDelete

[IntegrationEvent(False,False)]
local procedure OnBeforeOnDelete(DocumentSendingProfile: Record "Document Sending Profile", var IsHandled: Boolean)

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
IsHandled Boolean

OnBeforeSend

[IntegrationEvent(True,False)]
local procedure OnBeforeSend(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], ToCust: Code[20], DocName: Text[150], CustomerFieldNo: Integer, DocumentNoFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
ToCust Code[20]
DocName Text[150]
CustomerFieldNo Integer
DocumentNoFieldNo Integer
IsHandled Boolean

OnBeforeSendCustomerRecords

[IntegrationEvent(False,False)]
local procedure OnBeforeSendCustomerRecords(ReportUsage: Integer, RecordVariant: Variant, DocName: Text[150], CustomerNo: Code[20], DocumentNo: Code[20], CustomerFieldNo: Integer, DocumentFieldNo: Integer, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocName Text[150]
CustomerNo Code[20]
DocumentNo Code[20]
CustomerFieldNo Integer
DocumentFieldNo Integer
Handled Boolean

OnBeforeSendVendor

[IntegrationEvent(True,False)]
local procedure OnBeforeSendVendor(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], ToVendor: Code[20], DocName: Text[150], VendorNoFieldNo: Integer, DocumentNoFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
ToVendor Code[20]
DocName Text[150]
VendorNoFieldNo Integer
DocumentNoFieldNo Integer
IsHandled Boolean

OnBeforeSendVendorRecords

[IntegrationEvent(False,False)]
local procedure OnBeforeSendVendorRecords(ReportUsage: Integer, RecordVariant: Variant, DocName: Text[150], VendorNo: Code[20], DocumentNo: Code[20], VendorFieldNo: Integer, DocumentFieldNo: Integer, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocName Text[150]
VendorNo Code[20]
DocumentNo Code[20]
VendorFieldNo Integer
DocumentFieldNo Integer
Handled Boolean

OnBeforeSendToDisk

[IntegrationEvent(True,False)]
local procedure OnBeforeSendToDisk(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], DocName: Text, ToCust: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
DocName Text
ToCust Code[20]
IsHandled Boolean

OnBeforeTrySendToPrinter

[IntegrationEvent(False,False)]
local procedure OnBeforeTrySendToPrinter(ReportUsage: Integer, RecordVariant: Variant, CustomerFieldNo: Integer, ShowDialog: Boolean, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
CustomerFieldNo Integer
ShowDialog Boolean
Handled Boolean

OnBeforeTrySendToEMail

[IntegrationEvent(False,False)]
local procedure OnBeforeTrySendToEMail(ReportUsage: Integer, RecordVariant: Variant, DocumentNoFieldNo: Integer, DocName: Text[150], CustomerFieldNo: Integer, var ShowDialog: Boolean, var Handled: Boolean, var IsCustomer: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocumentNoFieldNo Integer
DocName Text[150]
CustomerFieldNo Integer
ShowDialog Boolean
Handled Boolean
IsCustomer Boolean

OnCheckElectronicSendingEnabled

[IntegrationEvent(True,False)]
local procedure OnCheckElectronicSendingEnabled(var ExchServiceEnabled: Boolean)

Parameters

Name Type Description
ExchServiceEnabled Boolean

OnGetDocumentName

[IntegrationEvent(False,False)]
local procedure OnGetDocumentName(ReportUsage: Enum "Report Selection Usage", var DocumentName: Text[150])

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
DocumentName Text[150]

OnGetDefaultOnBeforeDocumentSendingProfileInsert

[IntegrationEvent(False,False)]
local procedure OnGetDefaultOnBeforeDocumentSendingProfileInsert(var DocumentSendingProfile: Record "Document Sending Profile")

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"

OnSendCustomerRecordsOnBeforeLookupProfile

[IntegrationEvent(False,False)]
local procedure OnSendCustomerRecordsOnBeforeLookupProfile(ReportUsage: Integer, RecordVariant: Variant, CustomerNo: Code[20], var RecRefToSend: RecordRef, SingleCustomerSelected: Boolean, var ShowDialog: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
CustomerNo Code[20]
RecRefToSend RecordRef
SingleCustomerSelected Boolean
ShowDialog Boolean

OnSendVendorRecordsOnBeforeLookupProfile

[IntegrationEvent(False,False)]
local procedure OnSendVendorRecordsOnBeforeLookupProfile(ReportUsage: Integer, RecordVariant: Variant, VendorNo: Code[20], var RecRefToSend: RecordRef, SingleVendorSelected: Boolean, var ShowDialog: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
VendorNo Code[20]
RecRefToSend RecordRef
SingleVendorSelected Boolean
ShowDialog Boolean

OnBeforeVerifySelectedOptionsValid

[IntegrationEvent(False,False)]
local procedure OnBeforeVerifySelectedOptionsValid(var DocumentSendingProfile: Record "Document Sending Profile", var IsHandled: Boolean)

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
IsHandled Boolean

OnAfterGetRecordAsText

[IntegrationEvent(False,False)]
local procedure OnAfterGetRecordAsText(DocumentSendingProfile: Record "Document Sending Profile", var RecordAsText: Text, RecordAsTextFormatterTxt: Text, FieldCaptionContentFormatterTxt: Text)

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
RecordAsText Text
RecordAsTextFormatterTxt Text
FieldCaptionContentFormatterTxt Text

OnBeforeSendToPrinter

[IntegrationEvent(False,False)]
local procedure OnBeforeSendToPrinter(var DocumentSendingProfile: Record "Document Sending Profile", var ReportSelections: Record "Report Selections", RecordVariant: Variant)

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
RecordVariant Variant

OnSendWithReportDistributionManagement

[IntegrationEvent(False,False)]
local procedure OnSendWithReportDistributionManagement(var DocumentSendingProfile: Record "Document Sending Profile", var SendWithReportDistributionManagement: Boolean)

Parameters

Name Type Description
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
SendWithReportDistributionManagement Boolean

See also