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 :
Microsoft Dynamics CRM (Archived)

How to add external JS file in all pages of Partner Portal

(0) ShareShare
ReportReport
Posted on by

Hi guys!

I have added one external .js file in my parnter portal. I want to include it in all pages of partner portal by default. How can i achive this.

I have alread two custome .css file and its already working fine. but i am unable to find, how to its been added and how to add more?

Can you please help me on this. Thanks!!

crm_2D00_portal.JPG

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: How to add external JS file in all pages of Partner Portal

    I forgot to mention that, I want to include this in <head> tag.

  • Mahendar Pal Profile Picture
    45,095 on at
    RE: How to add external JS file in all pages of Partner Portal

    Hi,

    You can add this fine at a web files and later can refer it in portal. You can also follow steps here: www.cloudfronts.com/adding-custom-css-for-dynamics-crm-portal-ui

  • Community Member Profile Picture
    on at
    RE: How to add external JS file in all pages of Partner Portal

    I have added same way but its not reflecting in <head>. I am trying to add .js file. Earlier we added .css file and its included properly as well as working fine. Unable to identify issue for JS.

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: How to add external JS file in all pages of Partner Portal

    Did you try to add your js in the header page, then it should be available to every page automatcially.

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: How to add external JS file in all pages of Partner Portal

    Hi Ridan,

    Not sure if you are aware of this but worth checking if you are running into the same issue as mentioned in this blog. Basically CRM ignores the js file when you upload it as it is blocked.

    colinvermander.com/.../dynamics-365-portals-javascript-as-web-files

    Hope this helps.

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at
    RE: How to add external JS file in all pages of Partner Portal

    HI,

    Make a web template for all pages which you want to add external js and include there. By this way you can make unique designs.

  • Community Member Profile Picture
    on at
    RE: How to add external JS file in all pages of Partner Portal

    I have added js in Header (Web Templates) but it doesn't include in <head> tag of the page. Somehow i can make it work this way but i want this just code to be place in <head> only.

  • Community Member Profile Picture
    on at
    RE: How to add external JS file in all pages of Partner Portal

    @Ravi Kashyap, I have verified this. I have allowed JS to upload and verified file. It's available in portal too. Question is, how to include it in <head><script src="/file.js"></script></head>

  • Suggested answer
    JasonMcneil Profile Picture
    215 on at
    RE: How to add external JS file in all pages of Partner Portal

    I've generally had luck including JavaScript at the very end of footer template, not in the <head> tag as you're asking for, but many consider including JavaScript at the very end of the page to be best practice stackoverflow.com/.../whats-pros-and-cons-putting-javascript-in-head-and-putting-just-before-the-bod

  • Prakash Kalimuthu Profile Picture
    on at
    RE: How to add external JS file in all pages of Partner Portal

    Hi Ridvan,

    After adding your external js as web file in portal select Parent Page as "Home" for that web file record.

    It will be applicable to all pages in portal.

    Thanks & Regards,

    Prakash 

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans