Hi everyone, Since our data model can fluctuate ba...
# gooddata-cloud
a
Hi everyone, Since our data model can fluctuate based on user models and database configurations, we want to test our visualizations through the API using the
executeAFM
endpoint to ensure no errors occur. While we've confirmed that the model doesn't have any invalid relationships using the API and the special header
X-GDC-VALIDATE-RELATIONS
, visualizations might still fail if they include filters or dimensions that have become inconsistent. We would like to get rid of any error that are facing our end users. Could someone guide me on how to convert a visualization from the analytics model into
executeAFM
parameters? Any pointers to the relevant documentation would be greatly appreciated. Thanks! cc @Laurent Cobos
j
Hi Alexandre, I'm not sure if there is an easy way to do this directly out of the box, but there might be a simpler way to do it using our UI SDK (which uses react) - you will first need to export a catalogue of metadata objects in your workspace and then you can use this.
👀 1
a
Thank you, Can you be more explicit about the metadata export ?
you will first need to export a catalogue of metadata objects in your workspace
j
Those metadata objects would be whatever you want to pull into your report, e.g. facts, attributes, metrics. So, you would first pull a list of the metadata objects you would need to construct the visualization.
a
I understand thank you.