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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Referencing javascript web resources in a Dashboard web resource

(0) ShareShare
ReportReport
Posted on by 2,601

I have a dashboard with a component on it which is a web resources comprised of an HTML page with javascript code in it.

In this code I want to use the the javascript samples that come with SDK (SDK.Jquery.js and json2.js).  I've added them to my CRM Solution, however, with a dashboard libraries can't be added as they can with a form.

I've found out where built-in libraries are stored and referenced these, i.e.
<script src="/_static/_common/scripts/jquery1.7.2.min.js"></script>

But the files SDK.Jquery.js and json2.js are nowhere to be found in the C:\Program Files\CRMWeb.

Has anyone accomplished this with a Dashboard?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    jlattimer Profile Picture
    24,564 on at

    Use something like this in the script tag:

    src="/webresources/new_test.js"

    As long as you've uploaded the files as web resources this should work.

  • Verified answer
    CU21020959-0 Profile Picture
    2,601 on at

    Thanks for that - I got it to work though I had to put two dots before the first forward slash- so:

    src="../webresources/new_test.js"

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans