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?
3 Replies
- Greg_DecklerCommunity ChampionPS C:\temp> Invoke-PowerBIRestMethod -Method GET -Url gateways {
"@odata.context":"http://api.powerbi.com/v1.0/myorg/$metadata#gateways","value":[
]
}- FcrovettoNew 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-msftCommunity 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.