AL icon indicating copy to clipboard operation
AL copied to clipboard

Question: "Email Item" Send Internal/External

Open dNsl9r opened this issue 8 years ago • 3 comments

Hi, the function "Send" in Table 9500 "Email Item" is classified as internal in Microsoft_Application_12.1.22475.22720

[Scope('''Internal''')] procedure Send(HideMailDialog: Boolean): Boolean; begin end;

Taking a look at the bcinsider.azurecr.io/bcsandbox-master the classification is changed to external.

Do you have a timeframe when this change will come to the "normal" d365bc ?

dNsl9r avatar Jul 05 '18 06:07 dNsl9r

Thanks for your question. Generally, when an issue is fixed, it is fixed in our master branch, out of which we will release every 6 months in April and October. The fix would hence be released in October, unless backported earlier. For more information on our branching strategy, please refer to: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/.

In this case, however, I'm not sure how we reached the conclusion that the Send function should be exposed! From what I can see, that function isn't safe to use in extensions. Allow me to investigate a little more... I may have to change a thing or two to make this safe!

JesperSchulz avatar Jul 05 '18 11:07 JesperSchulz

Hi Jesper, thanks for your reply. Looking forward if you are going to change something 😆

dNsl9r avatar Jul 05 '18 13:07 dNsl9r

After having investigated this a little more, I've also landed on the conclusion that Send is indeed a safe function to call. I was worried about the file handling going on in the call stack of the function, but it is all about reading files, which as such isn't unsafe - it's the writing part we shouldn't allow. We could (and should) refactor parts of the mail management codeunit at some point, but for now it's fine to use what we have. I hope your original question was answered in my previous reply though. All changes will officially ship in October :-)

JesperSchulz avatar Jul 09 '18 10:07 JesperSchulz