V
V
venom19962021-01-21 10:27:27
Bitrix24
venom1996, 2021-01-21 10:27:27

How to get Bitrix 24 contact id from a deal?

There is a deal id, crm.deal.list methods are not suitable

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
venom1996, 2021-01-21
@venom1996

BX24.callMethod('crm.deal.list', {
                filter: {
                    ID: id,
                },
                select: ["CONTACT_ID"]
            },
            function(result)
            {
                $.ajax({
                    method: "POST",
                    url: "http://",
                    dataType: "json",
                    data: {idContact: result.data()},
                    success: function(data) {
                        console.log(data);
                    },
                    error: function(er) {
                        console.log(er);
                    }
                });
            }
        );

answer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question