AddAttachment - Method is obsoleted and can not be used for extension development
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 ?
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.
@JesperSchulz
Provide your existing code sample
@RaviThakkarNAV you need to use AddAtachmentStream function (from SMTP Mail codeunit) instead of AddAttachment:

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