Forum Discussion
Anonymous
4 years agoNot applicable
Get the dataset ID and add it to a POWER BI REST API command
I would like to retrieve the id of a dataset via this command : Get-PowerBIDataset -Scope Organization -Name "REPORT FINANCE DEV" Then, I would like to integrate it in this command instead of...
Hariharan_R
4 years agoSolution Sage
Hi Anonymous
Use the below script.
$dataset = Get-PowerBIDataset -Scope Organization -Name "SharePoint_Web"
$dataset_id=$dataset.id
$body ='{
"updateDetails": [
{
"name": "WKS_NAME_PARAM",
"newValue": "WKS"
}
]
}'
$url = "https://api.powerbi.com/v1.0/myorg/datasets/ $dataset_id/Default.UpdateParameters"
Invoke-PowerBIRestMethod -Url $url -Method Post -Body $body
Thanks
Hari
Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.
My Blog :: YouTube Channel :: My Linkedin
If I helped you, click on the Thumbs Up to give Kudos.
My Blog :: YouTube Channel :: My Linkedin
Anonymous
4 years agoNot applicable