Hi everyone,
I am working on an AL extension for Business Central (SaaS) and I have two specific requirements regarding URLs and file attachments. I would appreciate any guidance or best practices!
My Scenario:
I am uploading files into the Incoming Documents and need to access them via a URL.
My Questions:
-
File URL: Is it possible to generate a direct URL link to the specific uploaded file (BLOB) within the Incoming Documents using AL? Or is it only possible to generate a link to the Incoming Document record itself?
-
SaaS URL: How can I dynamically retrieve or generate the base SaaS environment URL using AL code?
If anyone has code snippets or can point me to the right system functions (like GetUrl), that would be extremely helpful.
Thanks in advance!
Nimsara Jayathilaka