Forum Discussion

vikrant7677's avatar
vikrant7677
Regular Visitor
8 years ago

Urgent: Refreshing power report C#

Hi. I am making a C# script (Windows console application on VS 2017) to refresh the dataset/report which I already have in my workspace. I do not wish to do it manually(scheduled refresh) because the process will be automated(Azure data factory). so the C# script needs to be executed as a Azure data factory pipeline. thus I want to refresh my dataset/report programmatically. 

Please guide me.. I am new to C#.. I am following the way mentioned in the below link:

https://community.powerbi.com/t5/Developer/Data-Refresh-by-using-API-Need-Steps/td-p/208928

when I execute the C# code I get an error saying remote server returned 401 forbidden..I dont know how do I proceed.I am registering an app on dev.powerbi.com and make a native app.. I dont know what exactly should my redirect url be? I think that is where I am going wrong. please guide me. I am totally confused.thanks in advance 

2 Replies