akopdev / bitrix24-python-rest

API wrapper for working with Bitrix24 REST API over webhooks.
https://pypi.org/project/bitrix24-rest/
MIT License
58 stars 22 forks source link

Problem with crm.deal.productrows.set #22

Open xenia-gontar opened 1 month ago

xenia-gontar commented 1 month ago

Hello! I use this type of code to change product rows in a deal:

bx24.callMethod( "crm.deal.productrows.set", id = 1, rows= [{"PRODUCT_ID": 3, "PRICE": 100.00, "QUANTITY": 4}, {"PRODUCT_ID": 3, "PRICE": 200.00, "QUANTITY": 4}])

But it seems that it only deletes product rows because crm.deal.productrows.get returns nothing.

What am I doing wrong?

akopdev commented 1 month ago

Hi Xenia,

The definition of API call seems to be valid, and it might be internal portal error.

Are you running app against cloud or on-promises version of bitrix24 portal?

xenia-gontar commented 3 weeks ago

Against cloud version