Forum Discussion
Dynamic Deep Linking from SharePoint page
Hello,
I want to open a PowerApp from a SharePoint page, but PowerApp has to know from which page it was opened in order to filter on the right dataset.
Unfortunately modern SharePoint does not have a content editor web part anymore where I could embed a JavaScript that might be able to find the URL it was embedded into.
So my problem is to find the information from where PowerApp got started, not the deep linking itself...
Are there any solutions?
FastTrack-F1 You can use modern script editor web part developed using SPFx to read the URL of current page using JavaScript and build dynamic URL to Power apps on SharePoint page.
Use this web part:
- Script editor web part for modern pages built in React
- Modern CEWP by SPJS - Not trusted as source code is not provided
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
FastTrack-F1 You can use modern script editor web part developed using SPFx to read the URL of current page using JavaScript and build dynamic URL to Power apps on SharePoint page.
Use this web part:
- Script editor web part for modern pages built in React
- Modern CEWP by SPJS - Not trusted as source code is not provided
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- FastTrack-F1Copper Contributor
Thanks for the quick reply! Unfortunately I now have to start a fight with our IT to install it on my site...
@Microsoft: Why do you always cut existing, useful solutions? SharePoint 2010 might not have looked so nice like modern page design, but at least as a site owner you could implement technical solutions that fit your needs.
FastTrack-F1 You can request SharePoint tenant administrator to at least enable to app catalog specific to your site collection to use this web part.
Documentation: Use the site collection app catalog
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.