S
S
sleepy_hungry2021-09-21 22:17:29
Bitrix24
sleepy_hungry, 2021-09-21 22:17:29

How to immediately close overdue cases in CRM Bitrix24?

Good afternoon. After transferring all contacts from AmoCRM to Bitrix24, "cases" were formed for each contact, often several pieces. Is it possible to close all these cases at once? Go into each contact and put a tick - broke.

Thanks to.

614a2fa928924304598175.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kudis, 2021-09-22
@kudis

Like this, I guess:

use Bitrix\Main\Loader;
Loader::includeModule('crm');
$obActivities = CCrmActivity::GetList(
    [],
    [
        'OWNER_TYPE_ID'     => CCrmOwnerType::ResolveID('CONTACT'),
        'COMPLETED' => 'N',
        'CHECK_PERMISSIONS' => 'N'
    ],
    false,
    false,
    [
        'ID'
    ]
);

while ($arActivity = $obActivities->Fetch()) {
    CCrmActivity::Update(
        $arActivity['ID'],
        [
            'COMPLETED' => 'Y'
        ],
        false
    );
}

I only advise you to hang up on a one-time agent, which will not be executed on hits

A
Andrey Nikolaev, 2021-09-24
@gromdron

Go to the "My Affairs" section ( http://your.b24/crm/activity/ ) - find all the necessary cases by the filter. At the bottom of the table, check "Public" and select "Mark done"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question