mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-23 21:29:38 +02:00
47 lines
1.2 KiB
Plaintext
Vendored
47 lines
1.2 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 1
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Set handler arguments
|
|
Sets the argument to the function, allowing it to be unspecified when the handler is called
|
|
|
|
|
|
|
|
`Function SetHandlerArguments(Val Project, Val HandlerKey, Val Argument, Val Value, Val Strict = True) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Project | --proj | String | ✔ | Project filepath |
|
|
| HandlerKey | --handler | String | ✔ | Handler key |
|
|
| Argument | --arg | String | ✔ | CLI argument (option) for the handler function |
|
|
| Value | --value | String | ✔ | String argument value |
|
|
| Strict | --strict | Boolean | ✖ | True > argument cannot be overwritten by a request data |
|
|
|
|
|
|
Returns: Structure Of KeyAndValue - Setting result
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Project = "C:\Users\Administrator\AppData\Local\Temp\v8_9B5_45.oint";
|
|
HandlerKey = "e52f...";
|
|
Argument = "token";
|
|
Value = "12345";
|
|
|
|
Result = OPI_IntegrationProxy.SetHandlerArguments(Project
|
|
, HandlerKey
|
|
, Argument
|
|
, Value);
|
|
```
|
|
|
|
|
|
|
|
|
|
|