Delete the set of contacts associated with the specified deal crm.deal.contact.items.delete

We are still updating this page

Some data may be missing — we will complete it shortly.

Scope: crm

Who can execute the method: any user

The method crm.deal.contact.items.delete clears the set of contacts associated with the specified deal.

Parameter

Description

id*

Identifier of the deal.

Required parameters are marked with *

Example

try
        {
        	const id = prompt("Enter ID");
        	const response = await $b24.callMethod(
        		"crm.deal.contact.items.delete",
        		{
        			id: id
        		}
        	);
        	
        	const result = response.getData().result;
        	if(result.error())
        	{
        		console.error(result.error());
        	}
        	else
        	{
        		console.info(result);
        	}
        }
        catch(error)
        {
        	console.error('Error:', error);
        }
        
try {
            $dealId = 123; // Replace with the actual deal ID you want to delete contacts from
            $result = $serviceBuilder->getCRMScope()->dealContact()->itemsDelete($dealId);
        
            if ($result->isSuccess()) {
                print("Successfully deleted contacts from deal ID: $dealId");
            } else {
                print("Failed to delete contacts. Result: " . json_encode($result));
            }
        } catch (Throwable $e) {
            print("An error occurred: " . $e->getMessage());
        }
        
var id = prompt("Enter ID");
        BX24.callMethod(
            "crm.deal.contact.items.delete",
            {
                id: id
            },
            function(result)
            {
                if(result.error())
                    console.error(result.error());
                else
                    console.info(result.data());
            }
        );
        

Required parameters are marked with *