bitrix24-python-rest icon indicating copy to clipboard operation
bitrix24-python-rest copied to clipboard

Problem with crm.deal.productrows.set

Open xenia-gontar opened this issue 1 year ago • 3 comments

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?

xenia-gontar avatar May 20 '24 08:05 xenia-gontar

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?

akopdev avatar May 21 '24 02:05 akopdev

Against cloud version

xenia-gontar avatar Jun 11 '24 14:06 xenia-gontar

Can confirm. Local version this time. Works fine through requests and json payload. Empties the productrows through the lib instead.

pavel-i-am avatar Oct 14 '24 18:10 pavel-i-am