web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Accessing public URL of the attached file in D365FO using API

(0) ShareShare
ReportReport
Posted on by
Hi All,
 
We had developed a vertical solution that will enable our third party application to display the attached file from D365F&O in their user interface. Our developer had created an API where it will return the download URL of the file attachment.

In our development machine, we are able to view the file without issues in postman.
But, after we had it deployed to any of our Tier-2+ sandbox machine, we encountered this issue (See the image below).

To further explain it, it requires log-in in the Tier-2+ sandbox. Is there a difference on how we access the attachments from the Dev machine and Tier-2 Sandboxes using API? And how can we address this issue?
We are using GET method to access the public URL in the Postman.

 
Please take note of the following steps we had done:
  1. Reviewed the Microsoft Entra ID Applications in the D365F&O. We are using the same Client ID for both the development and sandbox machine.
  2. Used the same Bearer Token generated in the https://login.microsoft.com/.../oauth2/token API to access the generated public URL of the attachment.
  3. Reviewed the link generated by manually accessing it in a browser (Microsoft Edge).
     
Should you need more clarifications, please let me know.
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,030 Super User 2025 Season 2 on at
    Hi Ian,
     
    On a Tier 2+ environment, an Azure BLOB storage linked to the Dynamics 365 application is used. On a development environment, there is a storage emulator. There is a difference in security. You don't have direct access to the BLOB storage. This is managed via APIs in the Dynamics application. You can develop a data entity providing access to specific attachments. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans