Get company/contact address
The Get Company/Contact Address robot reads the address of a CRM company or contact in Bitrix24 (Alaio) — actual (type 1) or legal (type 6). It returns the full address as a single line and separately by parts: city, street, postal code, region, country, plus an address-found flag (Y/N) for branching the business process.
The robot extracts the address of a company or contact from Bitrix24 (Alaio) CRM and is used in business processes and robots. You specify the entity type (company or contact), its ID and the address type: 1 — actual (default) or 6 — legal. The robot assembles the values into a single line (postal code, country, region, city, street) and at the same time returns each part as a separate field: city, street (the ADDRESS_1 field together with ADDRESS_2), postal code, region, country. Use the robot when you need to insert the address into a document or email template, pass it to delivery, fill a deal field, or check whether a company has an address filled at all. It returns the full address, the individual parts and an address-found flag (Y/N) — use it in the condition of the next step to handle the case of a missing address.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Entity type: company / contact | string | yes | |
| Company or contact ID | int | yes | |
| Address type: 1 — actual (default), 6 — legal | int | — |
What does the robot return?
| Parameter | Type |
|---|---|
| Full address (single line) | string |
| City | string |
| Street (ADDRESS_1) | string |
| Postal code | string |
| Region | string |
| Country | string |
| Address found (Y/N) | string |
Scenario: insert a company address into a contract
- A deal moves to the Document preparation stage
- The robot gets the actual address of the company linked to the deal
- When found = Y the process inserts the full address into the contract template, on N it creates a task to fill in the address