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...

Report
All responses (
Answers (