1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-27 12:32:33 +02:00

60 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 9
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get comment structure
Get comment fields structure
`Function GetCommentStructure(Val Clear = False) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
2024-10-15 10:16:04 +03:00
Returns: Structure of KeyAndValue - Fields structure
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Result = OPI_Bitrix24.GetCommentStructure();
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint bitrix24 GetCommentStructure \
2024-10-22 08:59:24 +03:00
--empty false
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint bitrix24 GetCommentStructure ^
2024-10-22 08:59:24 +03:00
--empty false
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"AUTHOR_ID": "<comment author identifier>",
"AUTHOR_NAME": "<Users name (optional)>",
"AUTHOR_EMAIL": "<Users email (optional)>",
"USE_SMILES": "<(Y|N) - parse comments for emoticons or not>",
"POST_MESSAGE": "<Message text>",
"UF_FORUM_MESSAGE_DOC": "<Array of files from disk to attach>"
}
```