APIs & Integrations

TGJW
Teilnehmer/-in

Associations v4 documentation need some correction (python)

lösung

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 Upvotes
1 Akzeptierte Lösung
TGJW
Lösung
Teilnehmer/-in

Associations v4 documentation need some correction (python)

lösung

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

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
1 Antwort
TGJW
Lösung
Teilnehmer/-in

Associations v4 documentation need some correction (python)

lösung

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

0 Upvotes