Forum Discussion

jonas_heepen's avatar
jonas_heepen
Regular Visitor
6 years ago
Solved

Refresh Dataflow via Power BI API

Hi all,

 

I'm having trouble using the Power BI API to refresh dataflows.

 

For example, what I frequently do is refresh datasets from an Azure Function App via the Power BI API using commands such as

 

object refresh = await client.Datasets.RefreshDatasetInGroupAsync(groupId, datasetId);

 

Now, when I'm trying to do the same for a dataflow using the following command

 

object refreshDataflow = await client.Dataflows.RefreshDataflowAsync(groupId, dataflowId);

 

I keep getting this error

 

'PowerBIClient' does not contain a definition for 'Dataflows' and no extension method 'Dataflows' accepting a first argument of type 'PowerBIClient' could be 
found (are you missing a using directive or an assembly reference?)

 

I don't understand the problem. Can anyone help me with this please?

 

Thanks in advance