# Get company from contact

Source: https://docs.vendasta.com/automations/my-automations/get-company-from-contact/

`Get company from contact` retrieves the company linked to the contact in scope and makes it available to downstream steps. Use it in contact-scoped automations when you need to run company-level actions. This action is available on contact-scoped triggers.

## How it works

1.  The automation reaches the step with a contact in scope
2.  The step looks up the company associated with the contact
3.  The company record is brought into scope for downstream steps
4.  Company-scoped actions become available in subsequent steps

> **Warning:** If the contact has no associated company, the step returns an error. Add an `If/else branch` to handle cases where no company exists.

## Set up the action

1.  Open the automation builder and add a new step
2.  Under `Businesses`, select `Get company from contact`

This action has no configuration fields. It retrieves the company linked to the contact in scope.

## Outputs

After the step runs, a company record is available in scope. Downstream steps can act on the company directly via `Add dynamic content`.

## Related resources

-   [Actions overview](https://docs.vendasta.com/automations/my-automations/actions-overview/): Browse all available actions
-   [Get contact from company](https://docs.vendasta.com/automations/my-automations/get-contact-from-company/): Go the other direction
-   [Find company](https://docs.vendasta.com/automations/my-automations/find-company/): Search for a company by field criteria
-   [Logic & flow control](https://docs.vendasta.com/automations/my-automations/logic-and-flow-control/): `If/else branch`, delays, and jump steps
-   [Creating and configuring automations](https://docs.vendasta.com/automations/my-automations/creating-and-configuring-automations/): Build and configure workflows
