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 :
Small and medium business | Business Central, N...
Answered

I am facing an issue with NavApp.GetResource()

(6) ShareShare
ReportReport
Posted on by 118
I created src folder and then created Images folder init.
 
src
-Images
 
to get the access to the resources, I gave 
 
I didnt get any error for resourcefolders and 
 
called the GetResource when I open the project setup
 
 
I am successfully able to get the resource in my demo tenant and created container. but when it comes to the QA server, it is getting failed.
Image
 
How can we make this right, can anyone please suggest the answer. is there any permission required or is there any mistake in my development.
 
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    90,068 Super User 2025 Season 2 on at
    I am facing an issue with NavApp.GetResource()
    The last time I encountered this problem, it was with the AL version, not the new one. Please upgrade to the latest released version and try again.
     
    Thanks.
    ZHU
  • Vahid Ghafarpour Profile Picture
    11,928 Super User 2025 Season 2 on at
    I am facing an issue with NavApp.GetResource()
    If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems.

    To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further!

    Thanks for being an active part of the Dynamics 365 Community! 😊
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,503 Super User 2025 Season 2 on at
    I am facing an issue with NavApp.GetResource()
    I think just double check  you've declared your image resource properly in the app.json or used the correct syntax in your code. For AL: The images must be set as Resource BuildAction in Visual Studio Code (happens automatically if under src/). You can access resources using GetResourceStream or by referencing them in controls like Image = 'Images/logo.png'.
     
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    1,157 on at
    I am facing an issue with NavApp.GetResource()
    Hii there,
    As per requirement please update your extension version to new. Or else try as per blog of @yun zhu .
     
    Attached link for reference.
     
     
     
    Try as per like this as per in this he mentioned the same error like this .. it can help to solve it .
     
    If you found answer please mark it answered.
     
     
    Thank You.
    Kamal Khakhkhar 
  • Verified answer
    Dyavari Sandeep Yadav Profile Picture
    118 on at
    I am facing an issue with NavApp.GetResource()
    thanks for quick response @Khushbu Rajvi
     
    So, after few minutes of research, so I am getting this error on version:  25.0.23364.24969, but there is slightly difference between my container version 25.0.23364.33083,
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    18,966 Super User 2025 Season 2 on at
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    18,966 Super User 2025 Season 2 on at
    I am facing an issue with NavApp.GetResource()
    Not able to see your image. could you share the failed message? 
     
     

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,683 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,603

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,214

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans