Hello Team :star: I was wondering if there is a w...
# gooddata-ui
n
Hello Team I was wondering if there is a way for me to dynamically fetch my workspace attributes and filters by calling the backend? for example like this:
await backend.workspace(workspace).attributes()
I have tried this but it does not return my attributes nor am i able to fetch the filters from this workspace. The backend that i am calling is IAnalyticalBackend. Thank you in advance 🌟
i
Hi Nicole call you mentioned returns just an Attribute service, you need to call some of its methods to get some attributes. But if you want to fetch the whole catalog, similar to the one shown in AnalyticalDesigner, you need to call
await backend.workspace(workspace).catalog()
.withOptions(someOptions)
.load()
Please refer to the SPI doc for more info about individual services/factories and their methods https://sdk.gooddata.com/gooddata-ui-apidocs/v8.9.0/docs/sdk-backend-spi.html