Sep 11, 2020 2:20 PM
I created an app with Webhook that subscribes for "contact.creation" event. So whenever I get a new lead from our Facebook Lead Gen Ad, it calls my Hubspot webhook endpoint on my server. It then grabs the the contact id from the webhook response and then sends a Contacts API request to get details of the created contact by passing the contact id using the following request URL:
Sep 11, 2020 9:48 PM
It looks like my suspicion of timing issue was correct. I added a 5-second delay before I send the Contacts API request after I received the webhook request callback and it worked! I can now see the hs_analytics_source_data_1 and hs_analytics_source_data_2 properties populated.