Download a FlexReport with GraphQL API
search cancel

Download a FlexReport with GraphQL API

book

Article ID: 282701

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

FlexReports can be accessed and dowloaded using the GraphQL API which returns a pre-signed URL to access the CSV data for a selected report using the FlexReport id.

Resolution

The following GraphQL call will return details of a given FlexReport including a URL that can be used to download the report data in CSV format:

https://help.cloudhealthtech.com/graphql-api/#get-a-specific-flexreport

Here is an example from a demo environment with the FlexReport identifier as an input on the left, and the download URL of the CSV highlighted on the right:

 

 

The tenant ID and FlexReport ID needed as input can be seen in the UI when you mouse over the FlexReport link:

 

If the FlexReport has expired, it can be rerun using the following call:

https://help.cloudhealthtech.com/graphql-api/#executeflexreport