QuickSight State Persistence and Bookmarks for embedded dashboards

Hi Greetings of the day,

I am trying to add the bookmark option in my web application as per this link [Amazon QuickSight now supports State Persistence and Bookmarks for embedded dashboards] but I am not able to see bookmark Icon. Please help.

my code is below

var quicksightClient = new AmazonQuickSightClient(
                    awsAccessKeyId,
                    awsSecretAccessKey,
                    RegionEndpoint.USEast1);

            BookmarksConfigurations bookmarks = new BookmarksConfigurations { Enabled = true };

            StatePersistenceConfigurations statePersistenceConfigurations = new StatePersistenceConfigurations { Enabled = true };

            RegisteredUserDashboardFeatureConfigurations registeredUserDashboardFeatureConfigurations = new RegisteredUserDashboardFeatureConfigurations
            {
                Bookmarks = bookmarks,
                StatePersistence = statePersistenceConfigurations,
            };

            RegisteredUserDashboardEmbeddingConfiguration registeredUserDashboardEmbeddingConfiguration
            = new RegisteredUserDashboardEmbeddingConfiguration
            {
                InitialDashboardId = dashboardId,
                FeatureConfigurations = registeredUserDashboardFeatureConfigurations
           
            };

            RegisteredUserEmbeddingExperienceConfiguration registeredUserEmbeddingExperienceConfiguration
            = new RegisteredUserEmbeddingExperienceConfiguration
            {
                Dashboard = registeredUserDashboardEmbeddingConfiguration
            };

            string url = quicksightClient.GenerateEmbedUrlForRegisteredUserAsync(new GenerateEmbedUrlForRegisteredUserRequest
            {
                AwsAccountId = accountId,
                ExperienceConfiguration = registeredUserEmbeddingExperienceConfiguration,
                UserArn = usrARN,
                SessionLifetimeInMinutes = 100

            }).Result.EmbedUrl;

Hi @Saveen ,

You would need to enable it as well in your application code when embedding the url in the iframe : amazon-quicksight-embedding-sdk - npm ( look for toolbarOptions )

Screenshot 2023-06-28 at 16.08.29

Regards,
Koushik

1 Like

Hi @Koushik_Muthanna

Thanks for replying

I have one more problem, if I am using iframe dashboard is loading but when I am using javascript sdk dashboard is not loading, Please see this link EmbedUrl not working