Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Add JavaScript to all pages across solution

(0) ShareShare
ReportReport
Posted on by

Hi,

I'd like to add a piece of JavaScript to my Dynamics CRM environment.

That means, that by loading any page on my Dynamics portal, I want that JavaScript to be part of the HTML-source.

From a concept view, it's comparable to what you have to do to get Google Analytics in.

All options that I found so far by research would require me to add that custom piece of HTML to lots of different elements. But there has to be an option to modify as few elements as possible, right?

What's the best approach to do this? Would you recommend a client-side or a server-side approach?

Thanks in advance, any feedback highly appreciated!

Martin

*This post is locked for comments

  • vtn Profile Picture
    vtn 5 on at
    RE: Add JavaScript to all pages across solution

    Hi Martin, I have the same issue with adding a piece of Javascript to all pages of my Dynamics 365 application. Could you find a solution?

    Thanks,

    Toan

  • RE: Add JavaScript to all pages across solution

    I'll look into that, thanks!

  • RE: Add JavaScript to all pages across solution

    Right, I'm talking about the cloud hosted service.

    Thanks anyway!

  • stuart Profile Picture
    stuart 2,080 on at
    RE: Add JavaScript to all pages across solution

    If by 365 you mean the in the cloud hosted service then probably not. If on premise then I don't see why not. I haven't tried it myself though and it clearly would be outside of Microsoft supportability.

  • RE: Add JavaScript to all pages across solution

    I wasn't aware of that possibility, thanks!

    But is a modification at IIS level possible for Dynamics 365 at all?

  • stuart Profile Picture
    stuart 2,080 on at
    RE: Add JavaScript to all pages across solution

    If you like flying by the seat of your pants and dancing outside the 'supported' status you could always try a HTTP Response rewrite at the IIS level - eg something like www.iis.net/.../using-outbound-rules-to-add-web-analytics-tracking-code

  • RE: Add JavaScript to all pages across solution

    Thanks for the quick reply.

    Yes, it would be for the internal app.

    Is there maybe some central entity, which is used by a large number of forms, etc? So, customizing that would hopefully yield a comparable result...

  • Wayne Walton Profile Picture
    Wayne Walton 13,728 on at
    RE: Add JavaScript to all pages across solution

    Is this for the internal Dynamics app, or for an outside-facing portal?  Because for the internal app, there is definitely no way to do that across the board.  You'd need to add it to every form manually.

    For the portal, I believe you can do that by adding a footer and making that default.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans