D
D
Denis Dormadekhin2018-06-20 17:33:42
Bitrix24
Denis Dormadekhin, 2018-06-20 17:33:42

How to add a line break to a comment when generating a lead using Bitrix 24 rest api?

I generate a lead from the site when filling out the form, in the "comment" field I add a hyphen - "\n", but in the generated lead the comment is created without a line break,
what could be the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Nikolaev, 2018-06-27
@dormadekhin

I am writing for future questioners.
In different parts of the system, different ways of line wrapping work.
One of the following options will definitely help:

K
KiborG85, 2019-04-10
@KiborG85

Thanks to.
And also (judging by the description https://dev.1c-bitrix.ru/rest_help/im/im_notify.php ) there is an option to translate the line #BR#

L
LoopUser, 2021-09-22
@LoopUser

I work with Bitrix24 through 1C Rest API. In a multiline field in Bitrix, it was not possible to make a line break in any way. The symbol %0A helped .
Here is an example
RecordJson_ = New RecordJSON;
RecordJson_.SetString(NewJSONRecordParameters(,Characters.Tab,,JSONCharacterEscape.None,,,,,False));
WriteJson_.WriteStartObject();
.....
WriteJson_.WritePropertyName("cmd14");
WriteJson_.WriteValue("crm.timeline.comment.add?fields[ENTITY_ID]=6439"+
"&fields[ENTITY_TYPE]=deal&fields[COMMENT]=aaa "+ "%0A" +" bbb");
The result is a multi-line string :)
614adfa75c540816697663.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question