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

Community site session details

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

Audio Resource file not accessible in D365 FO

(0) ShareShare
ReportReport
Posted on by 15

I have developed an extensible control where I want load audio tag from local resource  which have been added as well but I keep keep getting this error

Failed to load resource: the server responded with a status of 404

The path on browser console looks like this

xxx.dynamics.com/.../button-10.mp3

My html tag is like

<source src="Resources/Sounds/button-10.mp3" type="audio/mp3">

I have tried it like these as well

<source src="/Resources/Sounds/button-10.mp3" type="audio/mp3">

<source src="../Resources/Sounds/button-10.mp3" type="audio/mp3">

Can anyone tell me what is the issue here?

I have the same question (0)
  • Moiz Saleem Profile Picture
    15 on at
    RE: Audio Resource file not getting in D365 FO

    I have used a mp3 file available online in audio html tag as well which work fine.

    <source src="www.soundjay.com/.../beep-02.mp3" type="audio/mp3" />

    I have tried these as well

    <source src="Resources/Sounds/button-10.mp3" type="audio/mp3">

    <source src="/Resources/Audio/button-10.mp3" type="audio/mp3">

    <source src="../Resources/Audio/button-10.mp3" type="audio/mp3">

  • André Arnaud de Calavon Profile Picture
    299,395 Super User 2025 Season 2 on at
    RE: Audio Resource file not getting in D365 FO

    Hi Moiz,

    Can you explain the business requirement and also some details around the extensible control? Did you add the audio files as resources in the AOT? Or did you upload these files as document attachments? You probably need the full URL instead of only starting from "/Resources/...".

  • Moiz Saleem Profile Picture
    15 on at
    RE: Audio Resource file not getting in D365 FO

    Hell Andre,

    I have added the audio file as resource in AOT. I just need a beep sound when any my process throws any error("customer is missing"). The beep is audible when I use any online available mp3 beep like this

    <source src="www.soundjay.com/.../beep-02.mp3" type="audio/mp3" />

    but when I use it like this for any custom audio which have been uploaded as AOT. Below tag does not work for me

    <source src="/resources/Sounds/button-10.mp3" type="audio/mp3" />

    I see a 404 (not found) on browser console

  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,395 Super User 2025 Season 2 on at
    RE: Audio Resource file not getting in D365 FO

    Hi Moiz,

    Where is the "/resources/Sounds/" location referring to? Note that the web client can't access the AOT. You can probably extract the files and place them in a blob storage to access them from there.

  • Moiz Saleem Profile Picture
    15 on at
    RE: Audio Resource file not getting in D365 FO

    Hello Andre,

    The location of my file is  K:\AosService\PackagesLocalDirectory\MyModel\MyModel\AxResource\ResourceContent\Audio.

    Is not there any way to access this directory via this tag?

    <source src="/resources/Sounds/button-10.mp3" type="audio/mp3" />

  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,395 Super User 2025 Season 2 on at
    RE: Audio Resource file not getting in D365 FO

    Hi Moiz,

    No this is not possible in this way. Note that a production environment only has runtime packages and no access to the source code itself.

    When you build an own website, you can choose to have resources grouped in a file folder structure like "/resources/sounds/". This is not how Dynamics 365 is designed to work with the AOT resources.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,029

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 582 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans