Quicksight embedding SDK - get dashboard ID

0

We have a web app in which we embedded both the Quicksight console (for building) and dashboards (for visualization). Once a user build a dashboard in the embedded console, he needs to copy the dashboardID to a configuration in our web app and we used that id to be displayed in the dashboards embedding (visualization part). Is there any way of obtaining the dashboard ID from the embedded console iframe? I tried many ways, including viewing the frame source but this only works manually (not programatically via Javascript) due browsers security reasons.

Thanks!

asked 2 years ago301 views
1 Answer
1

Hi, @cbevilaqua

You can't get directly from an iframe due to JavaScript's cross-origin security restrictions.

You'll have to take another approach to get the dashboard id.

For example, when a user creates a dashboard, the AWS API should create a dashboard creation history.
For example, polling or picking this up with EventBridge and notifying the client.

profile picture
EXPERT
iwasa
answered 2 years ago
profile picture
EXPERT
reviewed a day ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions