Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
wow0609
Contributor II
Contributor II

Qlik Embed Chart/Table ExportData throws "Access Denied"

We are using qlik-embed to embed charts and data tables into our Angular portal.  Our Qlik source is our main Qlik Tenant in Qlik Cloud.

We are trying to support the 'ExportData' feature but we continually receive an 'Access Denied' message.  Here is the error:

{code: 5, parameter: 'ExportData', message: 'Access denied'}

We have reviewed all the permissions from User to Space to App level, but cannot determine how we need to set permissions so that the user in our website can export data from a table.  What/how should permissions be set at each of these levels to give the ExportData permission to the user?

We are calling the Qlik Engine API method, ExportData as shown below.  Please ignore the RXQ stuff.

We just need to know the very minimal permissions we must grant to a user with the 'Embedded Analytics User' role so that they can download / export the data for the given chart/table.

Here is the documentation we are using to assist in this: https://help.qlik.com/ja-JP/sense-developer/June2018/apis/EngineAPI/services-GenericObject-ExportDat...

 

exportDataFromObj(qId: string): void {

    const sub16 = this.app$

      .pipe(

        switchMap(h => getObject(h, qId)),

        switchMap(h => exportData(h, 'OOXML', '', '', 'P'))

      )

      .take(1)

      .subscribe(val => {

        const temp = environment.configPrefix ? `/${environment.configPrefix}` : '';

        const link = 'https://' + environment.qdtConfigHost + temp + val.qUrl;

        window.open(link);

      });

    this.subscriptions.push(sub16);

  }

 

Labels (1)
0 Replies