Is there a standard way to get the current Dashboard name using the Dynamics javascript SDK ?
-
I doubt that, whats your use case?Arun Vinoth PrecogTechnologies– Arun Vinoth PrecogTechnologies2020-03-05 16:01:53 +00:00Commented Mar 5, 2020 at 16:01
-
I have an Angular webressource, which is shown on multiple dashboards, and show different data depending on the dashboard.Dremor– Dremor2020-03-05 16:04:30 +00:00Commented Mar 5, 2020 at 16:04
-
was my answer helpful?Arun Vinoth PrecogTechnologies– Arun Vinoth PrecogTechnologies2020-03-09 18:33:41 +00:00Commented Mar 9, 2020 at 18:33
-
It is how we do it currently, but it is far from ideal. And it is currently affected by a bug, which prevent it from working in some cases.Dremor– Dremor2020-03-12 10:59:53 +00:00Commented Mar 12, 2020 at 10:59
Add a comment
|
1 Answer
You can use the Custom Parameter(data) under Web Resource Properties to send the Dashboard differentiating flag, parse the querystring & achieve what you want in web resource. Read more
3 Comments
Dremor
Is there any way to get it without having to pass a custom parameter ?
Arun Vinoth PrecogTechnologies
@Dremor not that I'm aware of. whats the bug you're talking about?
Dremor
When using the "refresh all" button on the dashboard, the custom parameters are not sent to the webressource. The bug have been reported to MS and is awaiting resolution. In the meantime, I was searching for a way to directly get the dashboard name.
