Forum Discussion
Using parameters to change workspace name for getting dataflows
Hi Anonymous ,
You may check this:
Power Query (M)agic: Parameters for Dataflows!
And the link below is included in the article above and maybe a better solution.
Pimp the dataflows connector in Power BI
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
I created the Dataflows query mentioned in the articles. I have verified that the Dataflows[workspaceId] and Dataflows[Catalogtype] have the correct vlaues in for the workspace ID and dataflow id. I updated my dataflow source to be the following:
let
Source = PowerBI.Dataflows(null),
#"Step1" = Source{[workspaceId=Dataflows[workspaceId]]}[Data],
#"Step2" = #"Step1"{[dataflowId=Dataflows[CatalogType]]}[Data],
CatalogType1 = #"Step2"{[entity="CatalogType"]}[Data]
in
CatalogType1
it seems to fail on line 5 when I try to create the Catalogtype entity with the following error:
All I am trying to do is easily switch between my test and production environments.
Cheers,
Peter