Forum Discussion
Can't select Maps To in Gateway setting via API/Powershell
I have the same problem.
I publish our "Golden Data Set" to a workspace.
I am able to update the report Data Set Parameters "dbName" and "dbServer" using the API.
This enables the Gateway, but the "Map To" field does not select the server by default.
You have to manually select the server after the dbName and dbServer fields are updated.
I need a way to select the Data Source in the Map To dropdown using the API.
- mbutler715 years ago
Advocate I
Having the same issue, anyone else able to solve this?
DevOps deploys the "Report" Dataset successfully.
DevOps updates the datasource in the "Report" Dataset successfully.The Gateway Connection in the "Report" Dataset loses it's mapping to a 'datasource' in the On-Premise Gateway.
- Anonymous5 years agoNot applicable
Hi mbutler71,
I was able to select the Map To field with the following:
# TRY TO BIND$bindUrl = 'datasets/<ReplaceWithYourGatewayId>/Default.BindToGateway'$postBindParams = @{gatewayObjectId = "yourGatewayId"datasourceObjectIds =@("yourDataSourceId")} | ConvertTo-Jsonwrite-host $postBindParamsInvoke-PowerBIRestMethod -Url $bindUrl -Method Post -Body $postBindParams -ContentType $content -Verbose