Forum Discussion
Fcrovetto
6 years agoNew Member
What happens when no gateways found?
What would happen if I use the method "GetGateways" without having any (or finding any)? Would I get an exception, a null value?
Greg_Deckler
6 years agoCommunity Champion
PS C:\temp> Invoke-PowerBIRestMethod -Method GET -Url gateways {
"@odata.context":"http://api.powerbi.com/v1.0/myorg/$metadata#gateways","value":[
]
}
"@odata.context":"http://api.powerbi.com/v1.0/myorg/$metadata#gateways","value":[
]
}
Fcrovetto
6 years agoNew Member
Sorry but I couldnt follow you, kinda new to working with REST apps.
I'm developing on C#, if that helps a bit xD
- v-lionel-msft6 years agoCommunity Support
Hi Fcrovetto ,
Are you saying this?
GatewaysExtensions.GetGateways(IGateways) Method
If yes, is your parameter correct?
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.