2025-03-09 22:41:53 +03:00
---
2025-03-17 17:09:18 +03:00
sidebar_position: 10
2025-10-26 18:25:49 +03:00
description: Get contact description and other functions to work with GreenAPI (WhatsApp) in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, GreenAPI (WhatsApp)]
2025-03-09 22:41:53 +03:00
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get contact description
Gets the contact description for the SendContact function
`Function GetContactDescription(Val Phone, Val Name = "", Val LastName = "", Val Patronymic = "", Val Company = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Phone | --phone | Number | ✔ | Phone number in international format without a plus sign |
| Name | --name | String | ✖ | Contact name |
| LastName | --surname | String | ✖ | Contact last name |
| Patronymic | --midname | String | ✖ | Contacts patronymic or middle name |
| Company | --company | String | ✖ | Name of the contact company |
Returns: Structure Of KeyAndValue - Contact description
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Phone = 79001234568;
Name = "Artem";
LastName = "Evpatoriysky";
Patronymic = "Petrovich";
Company = "Bicycle";
Result = OPI_GreenAPI.GetContactDescription(Phone, Name, LastName, Patronymic, Company);
```
2025-05-21 10:35:46 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint greenapi GetContactDescription \
--phone 79001234568 \
--company "Bicycle"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint greenapi GetContactDescription ^
--phone 79001234568 ^
--company "Bicycle"
```
</TabItem>
</Tabs>
2025-03-09 22:41:53 +03:00
2025-03-18 10:00:47 +03:00
```json title="Result"
{
"phoneContact": 79001234568,
"firstName": "Artem",
"middleName": "Evpatoriysky",
"lastName": "Petrovich",
"company": "Bicycle"
}
```