I would like to get the getLoginUrl information of a Network sObject.
what is the be way to get this information dynamically via SOQL? since static methods can't be invoked dynamically.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
UrlPathPrefix field (name of the community that's appended to the network path to reach its home page) can be queried from the Network Object. See the Object Reference for more on what can be queried on a Community Network.
If the log-in page has been overridden, you'd also want to query the NetworkPageOverride object. You should be able to combine these into a single query using a subquery to obtain both to obtain any override settings. Querying the latter requires the network's Id and I don't think you'd want to run two queries if you can avoid it.