Forum Discussion
crturner
3 years agoMicrosoft Employee
Using Power BI Rest APIs with Filters in Powershell
I am attempting to call the Get Groups REST API in Powershell to obtain a list of all the workspaces I have access to. $GetWorkspaces = Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1....
- 3 years ago
The Try it now feature is great, and I've been testing it, but I was getting syntax errors.
If anyone else is struggling with this, set the name/value as $filter/contains(name,'text')
crturner
3 years agoMicrosoft Employee
Hi GilbertQ I've seen that example and tried it
$GetWorkspaces = Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/groups?$filter=contains(name,'email')" -Method Get
But I still get the entire result set back
jmartel
3 years agoFrequent Visitor
Do you have any error while running it? give me infos. thanks!