Monday, June 8, 2020

How to get Org Instance name using SOQL

SOQL Query
String strInstanceName = [Select instanceName From Organization LIMIT 1].instanceName;
System.debug('strInstanceName ===> '+strInstanceName);

Output

No comments:

Post a Comment