Answer the question
In order to leave comments, you need to log in
How to programmatically add a deal in Bitrix24 to the desired category?
Good afternoon.
There is Bitrix 24, I'm trying to add a deal to it:
$result = CRest::call('crm.lead.add', [
"fields" => [
"TITLE" => "test 11111",
"NAME" => "test 2",
"LAST_NAME" => "test 3",
"CATEGORY_ID" => 4,
]
]
);
Answer the question
In order to leave comments, you need to log in
crm.lead.add - this is for leads
and for deals -> crm.deal.add
CATEGORY_ID - everything is correct if used for deals, not for leads, leads do not have directions (categories)
https://dev.1c-bitrix. en/rest_help/crm/cdeals/crm_...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question