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.
- Reviewed the Microsoft Entra ID Applications in the D365F&O. We are using the same Client ID for both the development and sandbox machine.
- Used the same Bearer Token generated in the https://login.microsoft.com/.../oauth2/token API to access the generated public URL of the attachment.
- Reviewed the link generated by manually accessing it in a browser (Microsoft Edge).