APIs & Integrations

TGJW
参加者

Associations v4 documentation need some correction (python)

解決

Im trying to do association between two object in workflow and Im able to trigger it inside the documentation page however the coding will not work in visual studio code or Hubspot workflow custom code

https://developers.hubspot.com/docs/api/crm/associations 

and figuare out out the funtion display on documentation and the physical libraries's function is different. 

TGJW_1-1689804645190.png

 

issue line >> api_response = client.crm.associations.v4.basic_api.put_crm_v4_objects_from_object_type_from_object_id_associations_default_to_object_type_to_object_id(from_object_type="ID", from_object_id=ID, to_object_type="ID", to_object_id=ID)

 

function to change to make it work.

  • from (show on documentation)
    • put_crm_v4_objects_from_object_type_from_object_id_associations_default_to_object_type_to_object_id
  • to (for code editor) inside the libraies of basic_api.py file line 348 is the funtion that make it work
    • create_default

 

 

another issues is this libraries does not work in workflow custom code

0 いいね!
1件の承認済みベストアンサー
TGJW
解決策
参加者

Associations v4 documentation need some correction (python)

解決

Thank you for the reply, yes after change to create_default it work.

元の投稿で解決策を見る

0 いいね!
1件の返信
TGJW
解決策
参加者

Associations v4 documentation need some correction (python)

解決

Thank you for the reply, yes after change to create_default it work.

0 いいね!