> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-worktree-351-fix-webapi-escaped-anchors.mintlify.site/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"));
```
