Oct 25 2022 05:19 AM
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?
Oct 26 2022 01:08 AM
Solution@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:
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.
Oct 26 2022 01:45 AM
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.
Oct 26 2022 01:50 AM
@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.
Oct 26 2022 01:08 AM
Solution@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:
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.