Hi,
I am wanting to build out the Get Datasources Power BI REST API which looks like this:
GET https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/datasources
I am trying to figure out how to pass through all of our Dataset Ids to compile a full JSON on the sources.
I have setup a GetDatasets flow to retrieve all the tenant's datasets, then Parse as a JSON and compose:

It works up to this point. However, I then want to extract all the Dataset id's into an array which can be used to pass through a 'For Each' loop and combined into a single output. I'm getting stuck at this point. I have tried following a few guides on converting a JSON object to an array following this type of setup:

When I run this, I get the following error on the For Each loop:

The outputs on the last "Parse Json" (which is being used as dynamic content) looks as expected and is full of data.
Any ideas please?