Source AL, 146 lines
src/System Application/App/Document Sharing/src/DocumentSharing.Codeunit.allines 11 to 26 of 146, Copyright (c) Microsoft Corporation. MIT
codeunit 9560 "Document Sharing"{ Access = Public; TableNo = "Document Sharing"; /// <summary> /// Triggers the document sharing flow with the provided Document Sharing record. /// </summary> /// <example> /// TempDocumentSharing.Name := 'My Shared Document.pdf'; /// TempDocumentSharing.Extension := '.pdf'; /// TempDocumentSharing.Data := "Document Blob"; /// TempDocumentSharing.Insert(); /// Codeunit.Run(Codeunit::"Document Sharing", TempDocumentSharing); /// </example> trigger OnRun()
All 146 lines
Events 5 in 29
| [IntegrationEvent] OnUploadDocument(var DocumentSharing: Record "Document Sharing" temporary; var Handled: Boolean) | new in 19 |
| [IntegrationEvent] OnCanUploadDocument(var CanUpload: Boolean) | new in 19 |
| [IntegrationEvent] OnCanUploadSystemDocument(var CanUpload: Boolean) | new in 21 |
| [IntegrationEvent] OnGetFileContents(var DocumentSharing: Record "Document Sharing" temporary; var Handled: Boolean) | new in 22 |
| [IntegrationEvent] OnDeleteDocument(var DocumentSharing: Record "Document Sharing" temporary; var Handled: Boolean) | new in 22 |
Public procedures 6 in 29
| Share(var DocumentSharingRec: Record "Document Sharing") | new in 19 |
| ShareEnabled(): Boolean | new in 19 |
| Share(FileName: Text; FileExtension: Text; InStream: InStream; DocumentSharingIntent: Enum "Document Sharing Intent") | new in 20 |
| Share(FileName: Text; FileExtension: Text; InStream: InStream; DocumentSharingIntent: Enum "Document Sharing Intent"; DocumentSharingSource: Enum "Document Sharing Source") | new in 21 |
| ShareEnabled(DocumentSharingSource: Enum "Document Sharing Source"): Boolean | new in 21 |
| EditEnabledForFile(FileName: Text): Boolean | new in 22 |
Changes 3 in 22
| EditEnabledForFile(FileName: Text): Boolean | new in 22 |
| added |
| [IntegrationEvent] OnGetFileContents(var DocumentSharing: Record "Document Sharing" temporary; var Handled: Boolean) | new in 22 |
| added |
| [IntegrationEvent] OnDeleteDocument(var DocumentSharing: Record "Document Sharing" temporary; var Handled: Boolean) | new in 22 |
| added |
All 7 changes in 19-29