ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Function-Expose] TAB1173 Document Attachment - SaveAttachment

Open BertDeTemmerman opened this issue 7 years ago • 6 comments

Can the SaveAttachment function be made external please in TAB1173 Document Attachment ?

SaveAttachment(RecRef : RecordRef;FileName : Text;TempBlob : Record TempBlob)

BertDeTemmerman avatar Feb 28 '19 13:02 BertDeTemmerman

Hi. We don't have plans to make this function externally available for AL development.

RomanZanizdra avatar Jul 23 '19 07:07 RomanZanizdra

Unfortunately ... Our client would like to add attachments to Sales orders quicker. Therefore I could create an 'upload' action, where the chosen document would be uploaded and saved. But can't do it without that function.

Perhaps do you know another way?

BertDeTemmerman avatar Jul 23 '19 08:07 BertDeTemmerman

Let me think a little about this.

RomanZanizdra avatar Jul 23 '19 08:07 RomanZanizdra

Thank you :) Or if MS could provide an 'Add attachment' button on sales order list and card that directly opens the 'upload file' screen and saves it, would also be very nice :D

BertDeTemmerman avatar Jul 23 '19 08:07 BertDeTemmerman

The first thing I want to mention, attachments are already on the order card (picture below). For the reasons (which I don't know) this factbox is not visible by default on order list page but it's also there (you can manage visibility of controls via extensions).

Capture

The next thing is that we can try to discuss with you the redesign of the SaveAttachment function. I mean it can be actually split into two function: one is for file open and upload into stream (this function will not be available for AL development), second function which is actually SaveAttachment will take stream instead of file and blob and do what it does now. But I'm afraid second variant cannot be processed via "request for external", this should be kind of "extensibility" request. Let me know your thoughts on that.

RomanZanizdra avatar Jul 26 '19 07:07 RomanZanizdra

Ah yes, we overlooked on that fact box.

The function split would be very interesting and would help us a lot. :) It would be very kind of you if you could implement that.

BertDeTemmerman avatar Jul 26 '19 08:07 BertDeTemmerman