“SharedServiceUnitStorage::GetDefaultStorageContext()” gets it´s Value from the web.config file in the Directory ‘C:\AOSService\webroot’. This is the complete code of the form, showing also how to get the URL of the uploaded file: If you click the download button, it will navigate to the URL and your browser will do the rest:Ĭode of Download button is again a one-liner: new Browser().navigate(fileUrl). You don’t have to deal with any details.īy default, the file is uploaded to a temporary blob storage and can be accessed through some ugly URL such as this: The whole upload is triggered by a single statement: File::GetFileFromUser(). When you click the Upload button, a dialog opens where you can pick a file on your computer and upload it. Let me demonstrate it on a simple form I’ve built. If you know how to add and download attachments in your webmail client, you can do it in AX 7 as well.Īnd it’s not too difficult for developers either. New Dynamics AX is a web application running in cloud, so how can users work with files in such an environment? The answer is: in the same way as with other web applications.