What is the best way to find the external network that a Org network is bound to?
I have tried the following code with no luck, and am now at a loss
OrganizationNetworkConfig = OrganizationNetwork.configuration
OrgNetworkParent = OrganizationNetworkConfig.parentNetwork
System.log("Its External Network is "+OrgNetworkParent.name);
System.log("It is of type "+OrgNetworkParent.type)
ExtNetwork = vcdHost.getEntityByReference("admin:network",OrgNetworkParent)