Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jonas_heepen
Regular Visitor

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

 

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @jonas_heepen ,

 

You can refer to this case which is similar to yours:
https://community.powerbi.com/t5/Developer/Step-2-in-Sample-quot-Push-dat-to-Azure-by-Adam-Saxton/m-...
If it doesn't work, you could also create a support ticket.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @jonas_heepen ,

 

You can refer to this case which is similar to yours:
https://community.powerbi.com/t5/Developer/Step-2-in-Sample-quot-Push-dat-to-Azure-by-Adam-Saxton/m-...
If it doesn't work, you could also create a support ticket.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors