Skip to main content

Notifications

Announcements

No record found.

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.
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,642 Super User 2024 Season 2 on at
    Accessing public URL of the attached file in D365FO using API
    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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans