Open coupalm opened 5 years ago
I have the exact same issue. I followed the tutorial on https://github.com/pnp/sp-dev-solutions/tree/master/solutions/flows-formatters-pages-siteScripts and tried to use the Query-String Parameter in the Embedded WebPart. Seems like this functionality is not yet available. Could somebody confirm this?
Category
Expected or Desired Behavior
With Modern Embed Web Part using the new data source option, I should be able to use the query string parameters when connected to the page environment. In the example in the flows-formatters-pages-siteScripts solution they refer to a url parameter with the following syntax: [$.UrlParameter] in the readme file However, in the json file, the example that refers to query string is not there anymore...
Observed Behavior
I call the page with the embed web part like this sitePages/mypage?EmployeId=6
In the embed web part, the iFrame src=list/view.aspx?useFiltersInViewXml=1&FilterField1=EmployeId&FilterValue1=[$.EmployeId]
This does not work. If I change [$.EmployeId] for 6 then it load the info correctly in the webpart.
So how do I refer the Page Environment datasource QueryStrings in the embed webpart? There is no doc on this.
Looked at Laura Rogers video but when she tried it, it was not working also...