You are viewing limited content. For full access, please sign in.

Question

Question

Table API Accessing Lookup Tables from PowerBI

asked on September 15, 2024

I am following these instructions to connect PowerBI to the internal Laserfiche cloud tables.  I can authenticate from PowerBI using basic authentication and can see the end point https://api.laserfiche.ca/odata4/table/ however there are no tables available to connect to.


I’ve checked the scope in oauth2.0 and also when setting up the basic authentication, it has table.Read repository.Read and access to Global.  The instructions say something about projects/Global but that’s not possible, the input box does not accept text and only lets me browse to the object.


The service principle account has full access, this is all set to allow Access To Process Automation, Process Administrator, Process Asset Administrator, Process Developer, Process Manager, Survey Form Developer.

I’ve also tried the swagger playground, this is the request: curl -X 'GET' \  'https://api.laserfiche.ca/odata4/table' \
  -H 'accept: application/json' \
  -H 'Authorization: Basic OWE4*******

 

Response body Download
{
  "@odata.context": "https://api.laserfiche.ca/odata4/table/$metadata",
  "value": []
}

It appears the response from Laserfiche is an empty object.
Is there some other setting required to give the service principal account access to tables?

0 0

Answer

SELECTED ANSWER
replied on September 16, 2024 Show version history

Sean,

Are you entering the appropriate project and scopes when you enter the Service Principal key (step 3.4)?

 

Generate username and password

0 0

Replies

replied on September 16, 2024

Also verify that required table and project scopes are allowed in Developer Console:

0 0
replied on September 18, 2024

Thanks for the help with this gents, indeed there are two areas to set the scopes and it missed one. The data is showing now and I’ve connected powerBI to the internal tables and it’s looking great! Thank you for this api.


Could it ever be possible to connect to the business process logs, we’d love to have a dashboard to answer basic questions like ‘what are my top business processes’ , ‘how many times are BP's running’ , ‘do I have any suspended processes’ (not one BP at a time but all of them, together). ‘Are there any business processes enabled that are never being run’.


Nevertheless, great work with the table API – always leave them wanting more 😉. Thank you.

0 0
replied on September 19, 2024

Glad you got it working Sean!


It certainly could be possible and we've had discussions on how to provide more access to important data that resides in Laserfiche.  I don't have any timelines but it's definitely on our radar!

 

Andrew

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.