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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
tsraaj
Frequent Visitor

Getgroup().Value showing 0

im trying to download bi report through c# application. but get workspce info that time getgroup().value showing 0. my code mentioned below.. shall i do any configiration in BI side. how to create groups..

 

var workspaces = pbiClient.Groups.GetGroups().Value; 
foreach (var workspace in workspaces)
{
if (workspace.Name.Equals(WorkspaceName))
return workspace;
}
return null;

 

getgroups().value showing 0 so return value is null. so i getting error workspce is null

 

tsraaj_0-1655956171459.png

 

Anyone share solution for this

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @tsraaj,

What type of workspace are you testing and where did this workspace host? Have you checked you are testing with the account that has corresponding permission to operate these workspaces?

Please share some more detailed information or help us clarify and troubleshoot your issue.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Solution Authors