You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-23 22:05:15 +02:00
72 lines
2.0 KiB
Plaintext
Vendored
72 lines
2.0 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 10
|
|
description: Get contact description and other functions to work with GreenAPI 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]
|
|
---
|
|
|
|
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);
|
|
```
|
|
|
|
|
|
<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>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"phoneContact": 79001234568,
|
|
"firstName": "Artem",
|
|
"middleName": "Evpatoriysky",
|
|
"lastName": "Petrovich",
|
|
"company": "Bicycle"
|
|
}
|
|
```
|