Update Process Element rpa.item.update
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Scope:
rpaWho can execute the method: any user
DEPRECATED
The development of this method has been halted. Please use Smart scripts as an alternative functionality.
This method updates the element with the identifier id in the process with the identifier typeId.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
typeId |
Process identifier |
|
id |
Element identifier |
|
fields* |
Object containing values for custom fields of the element |
Parameter fields
|
Name |
Description |
|
stageId |
Stage identifier |
|
UF_RPA_... |
Values for custom fields. The format for passing values depends on the field type |
Code Examples
-
Upload a new file to replace the old one (non-multiple field)
To replace a file in a non-multiple field, simply upload the new file. The old one will be automatically deleted.
JS{ "fields": { "UF_RPA_1_1585069397": [ "myfile.pdf", "...base64_encoded_file_content..." ] } } -
Remove the value of a custom file field
To do this, simply pass an empty string
''instead of the value. -
Keep the value of a non-multiple file field unchanged
The simplest option is to not include the key for this field in
fields. However, if you need to pass it without changing it, you should provide a list where the keyidcontains the file identifier.JS{ "fields": { "UF_RPA_1_1585069397": { "id": 433 } } }Warning
If a value different from the current one is passed in
id, the field value will be reset and the file will be deleted. -
Working with a multiple file field
The value of a multiple field is an array. Each element of the array follows the same rules as for non-multiple values.
-
Partial overwrite of a multiple file field value
For example, currently the multiple file field contains the values
[12, 255, 44].You need to keep files
12and44, and upload a new file instead of255.The request should look as follows:
JS{ "fields": { "UF_RPA_1_1585069397": [ { "id": 12 }, { "id": 44 }, [ "myNewFile.pdf", "...base64_encoded_file_content..." ] ] } }
Continue Learning
- Elements: Overview of Methods
- Add Process Element rpa.item.add
- Get Information About the rpa.item.get Element
- Get Data on Current Tasks of the Element rpa.item.getTasks
- Retrieve an Array of Process Elements rpa.item.list
- Delete Element rpa.item.delete