cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sai2
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 ?

 

 

5 REPLIES 5
Jagriti2121
New Member

Hi Everyone,

 

I am trying to embed a report in a react-based application. When I make changes to the desktop and publish it always creates a new report without replacing the one I used in react app.

 

Any lead will be appreciated,

richbenmintz
Super User
Super User

 

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;
}

 

 



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


v-sihou-msft
Microsoft
Microsoft

@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,

@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

 

 

@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.

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

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