Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1714 Visualizações

Hi,

does anyone know how to add a comment to a partner via api kw_execute under php?

I just can't get it to work


$message_id = $client->call('mail.message', 'create', [

          [

             'message_type' => 'comment', 

             'body' => 'TEST VIA API CALL',

             'subject' => false,

             'parent_id' => false,            

             'subtype_id' => 2,             

             'res_id' => 1001,

          ]                             

        ]);

This adds the note, as i get a message ID, but it does not show up on the partner record.

Thanks!

Avatar
Cancelar