2025-03-09 22:41:53 +03:00
|
|
|
---
|
2025-03-10 21:48:17 +03:00
|
|
|
sidebar_position: 8
|
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);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|