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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Can I make server.js b...
Power Pages
Answered

Can I make server.js backend end for Power Pages? And finally have a business solution for integrating webpages

(0) ShareShare
ReportReport
Posted on by

Is there anyway I can use a backend (server.js) for my page in Power Power Pages?

 

For a long time, I have been trying to allow users easy access to a web portal in my organization via SharePoint... I have tried so many solutions--Sharepoint + SSO and a link(*), PowerBI(**), Sharepoint + iframes(**), Power Apps(***),--but every solution doesn't work because Microsoft keeps depreciating core components and landscape is constantly changing.   

 

Its gotten such a problem that i know I will not be able to get the embedding of PowerBI in Sharepoint to work properly because the community assets won't load correctly.   I will repeat that... its gotten such a problem that I cannot even embed power bi properly.

 

Is there anyway I can use a backend (server.js) for my webpage in Power Power Pages?

 

Below a example of the type of code I need to load into the webpage.  Simple right?

 

<html>
<head>
 <base target="_top">
</head>
<body>
<script type="module" src="example.com/customD3package.js"> 
</script>
<D3-vis id="D3dashboard"
 src="https://webportal.gov"
 toolbar='bottom' >
</D3-vis>
</body>
</html>

 

 

Here is a more complex example as it was the original thing I wanted to do:

 

 

<script type="module" src="example.com/customD3package.js"> 
</script> 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
 integrity="omitted parameter" crossorigin="anonymous"> 
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" 
 integrity="omitted parameter" crossorigin="anonymous"> 
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" 
 integrity="omitted parameter" crossorigin="anonymous">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" 
 integrity="omitted parameter" crossorigin="anonymous"> 
</script> 
<script src="server.js" defer></script>
<script> 
function go(){
 var wurl = "https://webportal.gov" 
 var token = generateJwt()
 let portal = `<D3-vis id = "D3dashboard" src="${wurl}" token="${tokem}"> </D3-vis> `
 document.getElementById('dash').innerHTML = portal;
} 
</script>
<body onload="go()"> 
 <div id="dash">

 </div>
</body>

 

 

 ... please help me... 

 

 

 

 

 

Categories:
  • Verified answer
    oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hello

     

    You can reference external JS libraries in Power Pages, I noticed from your code you need Bootstrap as well as jQuery, please note that those two are already default in Power Pages.
    If you are referencing external libraries, you might end-up facing compatibility issues with default components from Power Pages.

    Power Pages also includes Liquid Template for markup language, which can cause issues with other frameworks that uses {{}}.

     

    A general good fit Power Pages would be when you want to expose your Dataverse/D365 data to external users.
    Probably similar if you have a scenario of internal users but you want to give more of a website look & feel.

    Using Power Pages to be a container for Power BI / iframe for other systems I am not sure it's the best approach. Are you at least using Dataverse/D365 for anything in the company?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 14 Super User 2026 Season 2

#3
SP2019admin Profile Picture

SP2019admin 4

Last 30 days Overall leaderboard