I want to get the IP address from Setup
-> Network Access
in my code, but I don't find a object to query, how can I query for it in Apex
?
I want to get the IP address from Setup
-> Network Access
in my code, but I don't find a object to query, how can I query for it in Apex
?
Best Answer
The records are represented by the
IpWhitelist
object, but they cannot be queried for. How did I figure out the name of the object? Go to the edit view for one of them and pass its Id to the following inExecute Anonymous
:I tried querying in the console with and without the
Tooling API
and got: