Hello
I am looking at the Companies API endpoint
The goal is to gather every possible property w/ value for a specific object by id.
The number of properties associated with an object type, like Companies, both standard and custom properties, can be numerous.
I would prefer NOT to make two calls:
Get Schema of all properties for object type Companies.
Apply all property names gathered from Companies’ schema to a comma-separated list of the properties.
This would be a costly to perform two calls.
Another recommended approach?
Thank you
Teun
June 23, 2023, 8:44am
2
Hi @jeff00seattle ,
How about making the API call to the schema only once every few hours to make sure that you have all properties and cache the results? You could also try the v2 endpoint to retrieve the full company, but I’m not sure if this endpoint will be deprecated.
@Teun
> How about making (schemas) API call … to make sure that you have all properties and cache the results.
Cannot, our FAAS platform service will not have a cache, saving properties is not an option.
> You could also try the v2 endpoint to retrieve the full company, but I’m not sure if this endpoint will be deprecated .
The all properties output for v2 endpoint is exactly what I am seeking!
v3 endpoint, Why is all properties dump per object not available?
v2 endpoint, How would this path be built for custom object types?
v2 endpoint, noticed that pagination is not provided, a feature I would like with v3. Provide a absurdly high value and all objects return. a) Can object count be determined before request? b) Does v3 have the same, gathering all objects without need for pagination? Because our FAAS platform does not have caching, v3 pagination is an issue.
v2 endpoint, Can selection of properties be specific instead of all?
v2 endpoint, How soon do you expect this to be deprecated?
@Teun
Gathering all the property keys of the “Companies” schema from the “schemas” endpoint, building a “companies” endpoint request to return all properties is nearly 4800 characters long.
It would be better to have a key word (example “properties=all”):
“/crm/v3/objects/companies?archived=false&limit=10&properties=all”
Instead of:
“/crm/v3/objects/companies?archived=false&limit=10&properties=about_us%2Cclosedate_timestamp_earliest_value_a2a17e6e%2Cdemodata%2Cfacebookfans%2Cfirst_contact_createdate_timestamp_earliest_value_78b50eea%2Cfirst_conversion_date%2Cfirst_conversion_date_timestamp_earliest_value_61f58f2c%2Cfirst_conversion_event_name%2Cfirst_conversion_event_name_timestamp_earliest_value_68ddae0a%2Cfirst_deal_created_date%2Cfounded_year%2Chs_additional_domains%2Chs_all_assigned_business_unit_ids%2Chs_analytics_first_timestamp%2Chs_analytics_first_timestamp_timestamp_earliest_value_11e3a63a%2Chs_analytics_first_touch_converting_campaign%2Chs_analytics_first_touch_converting_campaign_timestamp_earliest_value_4757fe10%2Chs_analytics_first_visit_timestamp%2Chs_analytics_first_visit_timestamp_timestamp_earliest_value_accc17ae%2Chs_analytics_last_timestamp%2Chs_analytics_last_timestamp_timestamp_latest_value_4e16365a%2Chs_analytics_last_touch_converting_campaign%2Chs_analytics_last_touch_converting_campaign_timestamp_latest_value_81a64e30%2Chs_analytics_last_visit_timestamp%2Chs_analytics_last_visit_timestamp_timestamp_latest_value_999a0fce%2Chs_analytics_latest_source%2Chs_analytics_latest_source_data_1%2Chs_analytics_latest_source_data_2%2Chs_analytics_latest_source_timestamp%2Chs_analytics_num_page_views%2Chs_analytics_num_page_views_cardinality_sum_e46e85b0%2Chs_analytics_num_visits%2Chs_analytics_num_visits_cardinality_sum_53d952a6%2Chs_analytics_source%2Chs_analytics_source_data_1%2Chs_analytics_source_data_1_timestamp_earliest_value_9b2f1fa1%2Chs_analytics_source_data_2%2Chs_analytics_source_data_2_timestamp_earliest_value_9b2f9400%2Chs_analytics_source_timestamp_earliest_value_25a3a52c%2Chs_annual_revenue_currency_code%2Chs_avatar_filemanager_key%2Chs_created_by_user_id%2Chs_createdate%2Chs_date_entered_customer%2Chs_date_entered_evangelist%2Chs_date_entered_lead%2Chs_date_entered_marketingqualifiedlead%2Chs_date_entered_opportunity%2Chs_date_entered_other%2Chs_date_entered_salesqualifiedlead%2Chs_date_entered_subscriber%2Chs_date_exited_customer%2Chs_date_exited_evangelist%2Chs_date_exited_lead%2Chs_date_exited_marketingqualifiedlead%2Chs_date_exited_opportunity%2Chs_date_exited_other%2Chs_date_exited_salesqualifiedlead%2Chs_date_exited_subscriber%2Chs_ideal_customer_profile%2Chs_is_target_account%2Chs_last_booked_meeting_date%2Chs_last_logged_call_date%2Chs_last_open_task_date%2Chs_last_sales_activity_date%2Chs_last_sales_activity_timestamp%2Chs_last_sales_activity_type%2Chs_lastmodifieddate%2Chs_latest_createdate_of_active_subscriptions%2Chs_merged_object_ids%2Chs_num_blockers%2Chs_num_contacts_with_buying_roles%2Chs_num_decision_makers%2Chs_num_open_deals%2Chs_object_id%2Chs_pinned_engagement_id%2Chs_pipeline%2Chs_predictivecontactscore_v2%2Chs_predictivecontactscore_v2_next_max_max_d4e58c1e%2Chs_read_only%2Chs_source_object_id%2Chs_target_account%2Chs_target_account_probability%2Chs_target_account_recommendation_snooze_time%2Chs_target_account_recommendation_state%2Chs_time_in_customer%2Chs_time_in_evangelist%2Chs_time_in_lead%2Chs_time_in_marketingqualifiedlead%2Chs_time_in_opportunity%2Chs_time_in_other%2Chs_time_in_salesqualifiedlead%2Chs_time_in_subscriber%2Chs_total_deal_value%2Chs_unique_creation_key%2Chs_updated_by_user_id%2Chs_user_ids_of_all_notification_followers%2Chs_user_ids_of_all_notification_unfollowers%2Chs_user_ids_of_all_owners%2Chubspot_owner_assigneddate%2Cis_public%2Cnum_associated_contacts%2Cnum_associated_deals%2Cnum_conversion_events%2Cnum_conversion_events_cardinality_sum_d095f14b%2Crecent_conversion_date%2Crecent_conversion_date_timestamp_latest_value_72856da1%2Crecent_conversion_event_name%2Crecent_conversion_event_name_timestamp_latest_value_66c820bf%2Crecent_deal_amount%2Crecent_deal_close_date%2Ctimezone%2Ctotal_money_raised%2Ctotal_revenue%2Cname%2Cowneremail%2Ctwitterhandle%2Cownername%2Cphone%2Ctwitterbio%2Ctwitterfollowers%2Caddress%2Caddress2%2Cfacebook_company_page%2Ccity%2Clinkedin_company_page%2Clinkedinbio%2Cstate%2Cgoogleplus_page%2Cengagements_last_meeting_booked%2Cengagements_last_meeting_booked_campaign%2Cengagements_last_meeting_booked_medium%2Cengagements_last_meeting_booked_source%2Chs_latest_meeting_activity%2Chs_sales_email_last_replied%2Chubspot_owner_id%2Cnotes_last_contacted%2Cnotes_last_updated%2Cnotes_next_activity_date%2Cnum_contacted_notes%2Cnum_notes%2Czip%2Ccountry%2Chubspot_team_id%2Chs_all_owner_ids%2Cwebsite%2Cdomain%2Chs_all_team_ids%2Chs_all_accessible_team_ids%2Cnumberofemployees%2Cindustry%2Cannualrevenue%2Clifecyclestage%2Chs_lead_status%2Chs_parent_company_id%2Ctype%2Cdescription%2Chs_num_child_companies%2Chubspotscore%2Ccreatedate%2Cclosedate%2Cfirst_contact_createdate%2Cdays_to_close%2Cweb_technologies”