cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

how to get guid of my workspace in power BI

hello   

   

   I want to get the GUID (ID) from power BI on  my workspace,I could able to get the GUID of dasboard's whch are present inside my workspace by using url.And i could not able to see the GUID URL while coming to MY WORKSPACE.

 

   Is there a way to get the GUID from My Workspace ?

 

 

4 REPLIES 4
Highlighted
Microsoft
Microsoft

Re: how to get guid of my workspace in power BI

@sai2

 

There's no GUID for My Workspace. You can directly import the objects in your "my workspace" withouting giving any GUID. For more details, see Power BI REST API document: Import operations

 

Regards,

Highlighted
Frequent Visitor

Re: how to get guid of my workspace in power BI

@v-sihou-msft

 

This is my code and we definitely need GUID (group id ) to get into my workspace,so what can i do now to get GUID of my workspace? GUID ScreenShot.PNG

 

 

Highlighted
Post Patron
Post Patron

Re: how to get guid of my workspace in power BI

@sai2

 

You will find the Group ID in the URL.

 

When you click to open the workspace, the URL will look something like this:

https://app.powerbi.com/groups/1903140f-c1d3-4c09-8dad-04ec6a9d0245/reportname

 

The text highlighted in bold is the GroupID.

Highlighted
Solution Sage
Solution Sage

Re: how to get guid of my workspace in power BI

 

Hi @sai2,

 

GroupId in the Rest call is not required, if you use the end point , https://api.powerbi.com/v1.0/myorg/dashboards, you will get all of the Dashboards from 'My Workspace'

 

some MS Sample Code Below

 

 

 static Dashboards GetDashboards()
{
Dashboards response = null;
//In a production application, use more specific exception handling.
try
{
//Create a GET web request to list all datasets
HttpWebRequest request = DatasetRequest("https://api.powerbi.com/v1.0/myorg/dashboards", "GET", AccessToken());

//Get HttpWebResponse from GET request
string responseContent = GetResponse(request);

JavaScriptSerializer json = new JavaScriptSerializer();
response = (Dashboards)json.Deserialize(responseContent, typeof(Dashboards));
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return response;
}

 

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors