> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get company info

> How to get company info with CRMScript.

You can access a company in three ways. Each will return **false** if the company is unknown.

## Bool load(Integer id)

Brings up the company with the given ID. This is always the 1st step when you want to do anything with an existing company.

```crmscript theme={null}
Company c;
c.load(2);
```

## Bool loadFromAgentAndKey(Integer agent, String key)

Brings up the company owned by the agent and matching the external key.

<Warning>
  `loadFromAgentAndKey()` might overwrite existing values!
</Warning>

## Bool findFromDomain(String domain)

Brings up the company based on its domain.

```crmscript theme={null}
Company c;
c.findFromDomain("superoffice.com");
```

## String getValue(String colName)

Fetches the value from a named field.

```crmscript! theme={null}
Company c;
c.load(2);
print(c.getValue("name"));
```


## Related topics

- [Edit company info](/en/company/learn/edit.md)
- [Get address info](/en/automation/crmscript/howto/address/get-address.md)
- [NSLicenseInfo](/en/automation/crmscript/reference/CRMScript.NetServer.NSLicenseInfo.md)
- [ExtraFieldsInfo](/en/automation/crmscript/reference/CRMScript.Native.ExtraFieldsInfo.md)
- [Add company](/en/mobile/company/create.md)
- [NSSoSystemInfoCarrier](/en/automation/crmscript/reference/CRMScript.NetServer.NSSoSystemInfoCarrier.md)
