anyone know of a way to retrieve the current url and pass it into a dashboard?
trying to host a dashboard in SharePoint and when the user clicks on the link to launch the dashboard I am passing in a query string value. How would the dashboard grab this query string value?
On the destination page $request.Headers["referer"] will give the url of the link that sent you there. $request.Headers["referer"].split("=")[1] give you usa.
There’s probably a better way in case of multiple parameters…
thanks, that should pull out the query string! I think the question I really have is how do I pass the url and receive it in the dashboard? that $request object is null when I try this:
You’ll need to ensure that you are calling this from an endpoint. Content is executed when you start the dashboard. Endpoint is executed when the user visits the page.
Currently not possible but I’ll get this into 1.5. It’ll behave like APIs where if you pass query string values, you will have access to them as variables in the dashboard.
Works like a charm. I want to separate a project into multiple dashboards for maintenance and being able to pass data to the next dashboard really helps. Thanks for adding this!