SBX - Search With Button

SBX - Forum Post Title

Add html webresource in portal

Microsoft Dynamics CRM Forum

Jane asked a question on 7 Jun 2018 3:29 AM
My Badges

Question Status

Suggested Answer

Hi,

I want to link an html webresource in portal. When the user clicks the link the html file that I created will open

Reply
Suggested Answer

Hi Jane ,

Please refer below reference  -

docs.microsoft.com/.../manage-web-links

Reply
Justin Jose responded on 7 Jun 2018 4:32 AM
My Badges
Suggested Answer

Hi Jane,

  1. Add the web resource in CRM entity form, the portal will render it.
  2. Using JavaScript in the Entity Form (Portal) hide the Webresource onload
  3. Trigger the JavaScript based on the button to Hide and Enable Webresource
  4. Webresource id will be $(#webresource_new_webresourcename)

Thanks

Justin Jose

Reply
Sandeep Mishra responded on 7 Jun 2018 5:33 AM
My Badges
Suggested Answer

Hi Jane,

Portal directly supports HTML pages, So you can create web template as html and link that using Web link.

Thanks,

Sandeep

Reply
Ira B responded on 14 May 2019 4:26 AM
My Badges

Hallo Justin,

Is any additional configuration needed?

Because I add the webresource to the CRM form and I can see it there but on Portal I receive an error, Page Not Found:

|https://myportal/_webresource/ root/page.html"  (404) Page not found.

I don't understand what I'm missing here,

Many thanks in advance,

Ira.

Reply
Suggested Answer

Hi Jane ,

Please refer below reference  -

docs.microsoft.com/.../manage-web-links

Reply
Justin Jose responded on 7 Jun 2018 4:32 AM
My Badges
Suggested Answer

Hi Jane,

  1. Add the web resource in CRM entity form, the portal will render it.
  2. Using JavaScript in the Entity Form (Portal) hide the Webresource onload
  3. Trigger the JavaScript based on the button to Hide and Enable Webresource
  4. Webresource id will be $(#webresource_new_webresourcename)

Thanks

Justin Jose

Reply
Sandeep Mishra responded on 7 Jun 2018 5:33 AM
My Badges
Suggested Answer

Hi Jane,

Portal directly supports HTML pages, So you can create web template as html and link that using Web link.

Thanks,

Sandeep

Reply

SBX - Two Col Forum

SBX - Migrated JS