{% extends "layout.html" %} {% block content %}
{% if action_performed %}

Successfully {{ action_performed }} Contact

{% endif %} {% if contact.properties['email'] is not none %}
// src/routes/contacts.py
hubspot_client.crm.contacts.basic_api.get_by_id(
    contact_id,
    properties=['firstname', 'lastname'],
)
{% endif %}

Properties

{% for property_name in contact.properties %} {% if property_name != 'hubspot_owner_id' %} {% else %}
// https://developers.hubspot.com/docs/crm/owners
hubspot_client.crm.owners.default_api.get_all()
{% endif %} {% endfor %}
// src/routes/contacts.py
properties = request.form
hubspot_client.crm.contacts.basic_api.update(
    contact_id,
    simple_public_object_input=properties,
)
{% endblock %}