ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

AddAttachment - Method is obsoleted and can not be used for extension development

Open RaviThakkarNAV opened this issue 6 years ago • 5 comments

I have one scenario where I want to Export to Excel on Report using Excel Buffer and send that Excel file as an attachment via Email from SMTP Email configuration.

I tried to utilize the old methods of Send Email with AddAttachment method but it is no longer possible.

Can you please, suggest if any other possible way to it ?

RaviThakkarNAV avatar Dec 12 '19 12:12 RaviThakkarNAV

Hi! Please take a moment to read our FAQ: https://github.com/Microsoft/AL/wiki/Frequently-Asked-Questions . This issue should have been raised in the ALAppExtensions repository. I will transfer it.

atoader avatar Dec 14 '19 16:12 atoader

@JesperSchulz

AlexanderYakunin avatar Dec 16 '19 08:12 AlexanderYakunin

Provide your existing code sample

TrippyZ avatar Dec 17 '19 19:12 TrippyZ

@RaviThakkarNAV you need to use AddAtachmentStream function (from SMTP Mail codeunit) instead of AddAttachment: image

JuricaB avatar Dec 23 '19 21:12 JuricaB

Exactly @JuricaB. Files are not to be used in the cloud. Please use the stream equivalents instead.

JesperSchulz avatar Jan 07 '20 15:01 JesperSchulz