{"title":"Table 60 Document Sending Profile, extension points 29","url":"https://jonas-paprotka.de/ref/table/60-document-sending-profile/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":60,"name":"Document Sending Profile","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/60-document-sending-profile/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/60-document-sending-profile/source/","path":"src/Layers/W1/BaseApp/Foundation/Reporting/DocumentSendingProfile.Table.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:60":{"name":"Document Sending Profile","url":"https://jonas-paprotka.de/ref/table/60-document-sending-profile/"},"table:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"table:61":{"name":"Electronic Document Format","url":"https://jonas-paprotka.de/ref/table/61-electronic-document-format/"},"codeunit:1630":{"name":"Office Management","url":"https://jonas-paprotka.de/ref/codeunit/1630-office-management/"},"page:364":{"name":"Select Sending Options","url":"https://jonas-paprotka.de/ref/page/364-select-sending-options/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:452":{"name":"Report Distribution Management","url":"https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/"},"table:77":{"name":"Report Selections","url":"https://jonas-paprotka.de/ref/table/77-report-selections/"},"codeunit:425":{"name":"Data Compression","url":"https://jonas-paprotka.de/ref/codeunit/425-data-compression/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"codeunit:10":{"name":"Type Helper","url":"https://jonas-paprotka.de/ref/codeunit/10-type-helper/"},"codeunit:260":{"name":"Document-Mailing","url":"https://jonas-paprotka.de/ref/codeunit/260-document-mailing/"},"codeunit:1410":{"name":"Doc. Exch. Service Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/"}},"procs":[{"name":"Default.OnValidate","line":89,"kind":"trigger","steps":[[97,"write",60,"ModifyAll"]]},{"name":"OnDelete","line":141,"kind":"trigger","steps":[[147,"event","OnBeforeOnDelete",1],[157,"write",18,"ModifyAll"]]},{"name":"GetDefaultForCustomer","line":195,"kind":"procedure","params":2,"steps":[[203,"call","GetDefault",1]]},{"name":"GetDefaultSendingProfileForCustomerFromLookup","line":206,"kind":"procedure","access":"local","params":2,"steps":[[211,"event","OnBeforeGetDefaultSendingProfileForCustomerFromLookup",1],[215,"call","GetDefaultForCustomer",2]]},{"name":"GetDefaultSendingProfileForVendorFromLookup","line":218,"kind":"procedure","access":"local","params":2,"steps":[[223,"event","OnBeforeGetDefaultSendingProfileForVendorFromLookup",1],[227,"ext","table",60,"GetDefaultForVendor",2]]},{"name":"GetDefaultForVendor","line":230,"kind":"procedure","params":2,"steps":[[238,"call","GetDefault",1]]},{"name":"GetDefault","line":241,"kind":"procedure","params":1,"steps":[[248,"validate",60,"Code"],[249,"validate",60,"Description"],[250,"validate",60,"E-Mail"],[251,"validate",60,"E-Mail Attachment"],[252,"validate",60,"Default"],[253,"event","OnGetDefaultOnBeforeDocumentSendingProfileInsert",0],[254,"write",60,"Insert",1]]},{"name":"GetRecordAsText","line":260,"kind":"procedure","params":0,"steps":[[266,"event","OnBeforeGetRecordAsText",0],[288,"event","OnAfterGetRecordAsText",0]]},{"name":"SetDocumentUsage","line":300,"kind":"procedure","params":1,"steps":[[305,"ext","table",61,"GetDocumentFormatUsage",2],[306,"validate",60,"Usage"]]},{"name":"VerifySelectedOptionsValid","line":309,"kind":"procedure","params":0,"steps":[[314,"event","OnBeforeVerifySelectedOptionsValid",1]]},{"name":"LookupProfile","line":328,"kind":"procedure","params":3,"steps":[[333,"ext","codeunit",1630,"IsAvailable",0],[334,"call","GetOfficeAddinDefault",2],[334,"ext","codeunit",1630,"AttachAvailable",0],[338,"call","GetDefaultSendingProfileForCustomerFromLookup",2],[340,"call","RunSelectSendingOptionsPage",2]]},{"name":"LookUpProfileVendor","line":346,"kind":"procedure","params":3,"steps":[[351,"ext","codeunit",1630,"IsAvailable",0],[352,"call","GetOfficeAddinDefault",2],[352,"ext","codeunit",1630,"AttachAvailable",0],[356,"call","GetDefaultSendingProfileForVendorFromLookup",2],[358,"call","RunSelectSendingOptionsPage",2]]},{"name":"RunSelectSendingOptionsPage","line":364,"kind":"procedure","access":"local","params":2,"steps":[[370,"validate",60,"One Related Party Selected"],[371,"write",60,"Insert"],[374,"run","page",364]]},{"name":"SendCustomerRecords","line":382,"kind":"procedure","params":7,"steps":[[393,"event","OnBeforeSendCustomerRecords",0],[395,"call","IsSingleRecordSelected",3],[397,"call","CheckShowProfileSelectionMethodDialog",4],[402,"event","OnSendCustomerRecordsOnBeforeLookupProfile",0],[403,"ext","table",60,"LookupProfile",3],[404,"ext","table",60,"Send",7],[415,"event","OnSendCustomerRecordsOnBeforeLookupProfile",0],[416,"ext","table",60,"LookupProfile",3],[417,"ext","table",60,"Send",7],[422,"event","OnAfterSendCustomerRecords",0]]},{"name":"SendVendorRecords","line":425,"kind":"procedure","params":7,"steps":[[435,"event","OnBeforeSendVendorRecords",0],[439,"call","IsSingleRecordSelected",3],[441,"call","CheckShowProfileSelectionMethodDialog",4],[446,"event","OnSendVendorRecordsOnBeforeLookupProfile",0],[447,"ext","table",60,"LookUpProfileVendor",3],[448,"ext","table",60,"SendVendor",7],[459,"event","OnSendVendorRecordsOnBeforeLookupProfile",0],[460,"ext","table",60,"LookUpProfileVendor",3],[461,"ext","table",60,"SendVendor",7]]},{"name":"CheckShowProfileSelectionMethodDialog","line":466,"kind":"procedure","access":"local","params":4,"steps":[[472,"event","OnBeforeCheckShowProfileSelectionMethodDialog",1],[477,"ext","table",60,"ProfileSelectionMethodDialog",2]]},{"name":"Send","line":482,"kind":"procedure","params":7,"steps":[[488,"event","OnBeforeSend",1],[493,"ext","codeunit",8703,"LogUsage",3],[495,"call","UpdateDocumentProfileForRecord",2],[496,"call","SendToVAN",1],[497,"call","SendToPrinter",3],[498,"call","TrySendToEMailGroupedMultipleSelection",6],[500,"call","SendToDisk",5],[502,"event","OnAfterSend",0]]},{"name":"SendVendor","line":506,"kind":"procedure","params":7,"steps":[[512,"event","OnBeforeSendVendor",1],[517,"ext","codeunit",8703,"LogUsage",3],[519,"call","SendToVAN",1],[520,"call","SendToPrinterVendor",3],[521,"call","TrySendToEMailGroupedMultipleSelection",6],[522,"call","SendToDiskVendor",5],[524,"event","OnAfterSendVendor",0]]},{"name":"TrySendToVAN","line":530,"kind":"procedure","params":1,"steps":[[533,"call","SendToVAN",1]]},{"name":"TrySendToPrinter","line":536,"kind":"procedure","params":4,"steps":[[540,"event","OnBeforeTrySendToPrinter",0],[549,"call","SendToPrinter",3]]},{"name":"TrySendToPrinterVendor","line":552,"kind":"procedure","params":4,"steps":[[559,"call","SendToPrinterVendor",3]]},{"name":"TrySendToEMail","line":562,"kind":"procedure","params":6,"steps":[[568,"event","OnBeforeTrySendToEMail",0],[579,"call","TrySendToEMailGroupedMultipleSelection",6]]},{"name":"TrySendToEMailGroupedMultipleSelection","line":583,"kind":"procedure","params":6,"steps":[[597,"call","GetDistinctCustomerVendor",3],[606,"call","GetMultipleDocumentsNo",2],[607,"call","GetMultipleDocumentsName",3],[609,"call","SendToEMail",6],[611,"call","SendToEmailVendor",6],[622,"ext","codeunit",452,"GetFullDocumentTypeText",1],[624,"call","SendToEMail",6],[626,"call","SendToEmailVendor",6]]},{"name":"GetMultipleDocumentsName","line":641,"kind":"procedure","access":"local","params":3,"steps":[[660,"event","OnGetDocumentName",0]]},{"name":"TrySendToDisk","line":682,"kind":"procedure","params":5,"steps":[[685,"call","SendToDisk",5]]},{"name":"SendToVAN","line":688,"kind":"procedure","params":1,"steps":[[694,"event","OnSendWithReportDistributionManagement",0],[699,"ext","codeunit",452,"VANDocumentReport",2]]},{"name":"SendToPrinter","line":702,"kind":"procedure","params":3,"steps":[[707,"event","OnBeforeSendToPrinter",0],[713,"ext","table",77,"PrintWithDialogForCust",4]]},{"name":"SendToPrinterVendor","line":716,"kind":"procedure","access":"local","params":3,"steps":[[725,"ext","table",77,"PrintWithDialogForVend",4]]},{"name":"SendToEMail","line":728,"kind":"procedure","access":"local","params":6,"steps":[[755,"ext","table",77,"SendEmailToCust",6],[758,"ext","table",77,"GetEmailBodyForCust",5],[759,"ext","codeunit",452,"SendXmlEmailAttachment",5],[764,"ext","table",61,"SendElectronically",4],[765,"ext","codeunit",452,"CreateOrAppendZipFile",4],[766,"ext","table",77,"SendToZipForCust",5],[768,"ext","codeunit",425,"SaveZipArchive",1],[769,"ext","codeunit",4100,"CreateInStream",1],[771,"ext","codeunit",10,"CopyRecVariantToRecRef",2],[782,"ext","table",77,"GetEmailBodyForCust",5],[784,"ext","codeunit",260,"EmailFile",11],[790,"event","OnAfterSendToEMail",0]]},{"name":"SendToEmailVendor","line":793,"kind":"procedure","access":"local","params":6,"steps":[[819,"ext","table",77,"SendEmailToVendor",6],[822,"ext","table",77,"GetEmailBodyForVend",5],[823,"ext","codeunit",452,"SendXmlEmailAttachmentVendor",4],[828,"ext","table",61,"SendElectronically",4],[829,"ext","codeunit",452,"CreateOrAppendZipFile",4],[830,"ext","table",77,"SendToZipForVend",5],[832,"ext","codeunit",425,"SaveZipArchive",1],[833,"ext","codeunit",4100,"CreateInStream",1],[846,"ext","table",77,"GetEmailBodyForVend",5],[848,"ext","codeunit",260,"EmailFile",11],[854,"event","OnAfterSendToEmailVendor",0]]},{"name":"SendToDisk","line":857,"kind":"procedure","params":5,"steps":[[871,"event","OnBeforeSendToDisk",1],[877,"ext","table",77,"SendToDiskForCust",5],[880,"ext","table",61,"SendElectronically",4],[881,"ext","codeunit",452,"SaveFileOnClient",2],[885,"ext","table",61,"SendElectronically",4],[886,"ext","codeunit",452,"CreateOrAppendZipFile",4],[887,"ext","table",77,"SendToZipForCust",5],[888,"call","SaveZipArchiveToBLOB",2],[890,"ext","codeunit",452,"SaveFileOnClient",2]]},{"name":"SendToDiskVendor","line":895,"kind":"procedure","access":"local","params":5,"steps":[[910,"ext","table",77,"SendToDiskForVend",5],[913,"ext","table",61,"SendElectronically",4],[914,"ext","codeunit",452,"SaveFileOnClient",2],[918,"ext","table",61,"SendElectronically",4],[919,"ext","codeunit",452,"CreateOrAppendZipFile",4],[920,"ext","table",77,"SendToZipForVend",5],[921,"call","SaveZipArchiveToBLOB",2],[923,"ext","codeunit",452,"SaveFileOnClient",2]]},{"name":"CheckElectronicSendingEnabled","line":980,"kind":"procedure","params":0,"steps":[[985,"call","HasThirdPartyDocExchService",0],[986,"ext","codeunit",1410,"CheckServiceEnabled",0]]},{"name":"HasThirdPartyDocExchService","line":989,"kind":"procedure","access":"local","params":0,"steps":[[991,"event","OnCheckElectronicSendingEnabled",0]]},{"name":"SaveZipArchiveToBLOB","line":994,"kind":"procedure","access":"local","params":2,"steps":[[998,"ext","codeunit",4100,"CreateOutStream",1],[999,"ext","codeunit",425,"SaveZipArchive",1],[1000,"ext","codeunit",425,"CloseZipArchive",0]]},{"name":"UpdateDocumentProfileForRecord","line":1003,"kind":"procedure","access":"local","params":2,"steps":[[1009,"call","UpdateDocumentProfileForCustomer",1]]}]}