Python
- 1 ответ
- 0 вопросов
1
Вклад в тег
pip install fast_bitrix24
from fast_bitrix24 import Bitrix
b = Bitrix('адрес вашего вебхука')
deals = b.get_all('crm.deal.list')
comments = b.get_by_ID('crm.deal.comment.items.get',
[d['ID'] for d in deals])
filtered_deal_IDs = []
for deal_id, deal_comments in comments:
if "Изготовить оригинальное клише" in [c['TITLE'] for c in deal_comments]:
filtered_deal_ID.append(deal_id)