S
S
serik2021-02-08 16:34:48
Bitrix24
serik, 2021-02-08 16:34:48

How to attach a file to a transaction in a multiple field of the File type?

Hello! Please tell me, I use the events OnBeforeCrmDealUpdate and OnBeforeCrmDealAdd .
I need to attach a file to the deal in a multiple field for these events.
The file is stored simply in a folder, and I know the path to it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
serik, 2021-02-09
@black_xe

This is how I solved the problem:

$fields['UF_CONTRACT_REGISTER_DOCUMENT'][0] = \CFile::MakeFileArray($pdf['id']);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question