S
S
Sas32322021-10-29 10:27:33
1C-Bitrix
Sas3232, 2021-10-29 10:27:33

How to get multiple contact field values ​​using webhook in B24?

I get contacts from B24 via "crm.contact.list". There is no EMAIL field in the response, I read the forum and it turns out that the multifields in the response are not returned. I'm looking for work with multifields in the documentation and I don't find anything except "crm.multifield.fields" which is of no use in this case.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Veremeenko, 2021-10-29
@Sas3232

BX24.callMethod( "crm.contact.list",
{ select: [ "*", "EMAIL" ],
filter: { "HAS_EMAIL": "Y" }, }, );
Returns in this case.
Or choose which fields you need in { select: [ "ID", "NAME", "LAST_NAME", "TYPE_ID", "EMAIL" ].

S
Sas3232, 2021-10-29
@Sas3232

Thanks a lot, it helped! Since almost all fields are needed, I use "*" and "UT_*", here's how to guess what you need with ALL fields and use an additional select on the STANDARD field.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question