mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-29 21:57:16 +02:00
47 lines
1019 B
Plaintext
Vendored
47 lines
1019 B
Plaintext
Vendored
---
|
|
sidebar_position: 8
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Update handler key
|
|
Replaces the handler key with a new one
|
|
|
|
|
|
|
|
`Function UpdateHandlerKey(Val Project, Val HandlerKey, Val NewKey = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Project | --proj | String | ✔ | Project filepath |
|
|
| HandlerKey | --handler | String | ✔ | Handler key |
|
|
| NewKey | --key | String | ✖ | Custom key, if necessary. New standard UUID by default |
|
|
|
|
|
|
Returns: Structure Of KeyAndValue - Information about the handler
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Project = "C:\Users\Administrator\AppData\Local\Temp\v8_9B5_45.oint";
|
|
HandlerKey = "e52f...";
|
|
NewKey = "mykey";
|
|
|
|
// Custom key
|
|
|
|
Result = OPI_IntegrationProxy.UpdateHandlerKey(Project, HandlerKey, NewKey);
|
|
|
|
// New random key
|
|
|
|
Result = OPI_IntegrationProxy.UpdateHandlerKey(Project, NewKey);
|
|
```
|
|
|
|
|
|
|
|
|
|
|