Best answer

Using {{zap_meta_human_now}} but its not updating last contacted date in HubSpot

  • 2 October 2021
  • 15 replies
  • 17257 views

I am using the code {{zap_meta_human_now}} to timestamp when a zap runs-- I got the code from posts around 2018 for the same purpose. I am hoping to use the timestamp to update the ‘last contacted’ date for my contacts and deals. The code is not returning data, has the code to timestamp changed?

icon

Best answer by SamB 14 March 2022, 17:32

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

15 replies

Userlevel 6
Badge +6

Hey @questionmark ,

 

The command is still the same which was earlier. Can you please post the screenshot of the output of the timestamp?

Userlevel 7
Badge +7

Hi @questionmark , pleas share some screenshots of what you are trying to achieve and which zap actions you are using. This is very usefull to understand!

 

Thanks

Userlevel 7
Badge +14

Hi @questionmark 

Here’s the help article: https://zapier.com/help/create/customize/insert-the-time-your-zap-runs-into-a-field

I’ve tested using {{zap_meta_human_now}} and it works.

As others have mentioned, please post screenshots of where it’s not working.

 

Here is a screenshot. I am using the code to try and timestamp into Hubspot the last time contacted on a Deal. 

 

I also tried the code in other steps and always returns “No data”

Userlevel 7
Badge +14

@questionmark

When you manually test the Zap step OR turn the Zap ON and test, this placeholder variable will populate with the timestamp.

 

Help article: https://zapier.com/help/create/customize/insert-the-time-your-zap-runs-into-a-field

 

Userlevel 6
Badge +6

Here is a screenshot. I am using the code to try and timestamp into Hubspot the last time contacted on a Deal. 

 

I also tried the code in other steps and always returns “No data”

Hey,

 

No Data is just a place holder value. Run the Zap and this will return date.

It does not. The zap has run over 200 times. Perhaps it needs to be formatted first, but here a screenshot a test to show no data being pulled from that code:

 

Userlevel 7
Badge +14

@questionmark 

The Zap Meta Human Now variable can’t be mapped to the “Additional properties to retrieve”.


Please post a screenshot of how your HubSpot Zap step is configured with the Zap Meta Human Now variable mapped to the “notes_last_contacted” field.

 

 

The entire configuration of that step is in these two screenshots:

The only thing I am using this step for is to hopefully update the “Last Contacted Date” on HS when this zap runs. In other words, I was hoping to use the {{zap_meta_human_now}} code as a timestamp than can be automatically populated to the deal that triggered it as the “Last Contacted Date.”

Userlevel 7
Badge +14

@questionmark

You’d need to map the Zap Meta Human Now variable to the HubSpot Deal field that you want set with a timestamp, similar to how you have this variable mapped to a field.

 

The “Additional properties to retrieve” is used to RETURN data points after the action step runs.

 

The Zap Meta Human Now variable can’t be mapped to the “Additional properties to retrieve”.

 

Userlevel 7
Badge +14

@questionmark 

FYI: HubSpot will automatically update the “hs_lastmodifieddate” data point when the Deal is updated.

 

Yes, but last modified date is not the same as last contacted. It’s a significant difference in the sales process to keep track of the last time a deal was modified, versus the last time contact was made because of an existing deal. 

 

I appreciate the time and involvement. Besides having to map the timestamp from the sheet, is there a way to do it within the zap?

Or, if the last modified date could be used to set the last contacted date, that would solve the issue as well. I have not figured out how to either map the timestamp within the zap, or how to use the last modified date to also be set as the last contacted date. 

 

Userlevel 7
Badge +14

@questionmark

Last Contacted might be a data point updated internally by HubSpot for Contacts related to the Deal, when email communications are sent via HubSpot.

https://knowledge.hubspot.com/contacts/hubspots-default-contact-properties

 

You may need to add a custom date property to the Deal Object in HubSpot in order to set this date.

Check this help article: https://knowledge.hubspot.com/crm-setup/manage-your-properties

 

Once you create a new Deal property, you can then set the Zap Meta Human Now variable to that field in the Zap.

Userlevel 7
Badge +11

Hey folks! I just wanted to jump in to summarize the answer here for anyone that’s running into similar issues.

As per the documentation that Troy linked to previously, the Last contacted field is automatically updated by HubSpot based on the date of the latest activity, this is why it’s not possible to update that last contacted field via an Update Deal action:

0c316f7bbd4d32d9de12240b08d222b6.png
Using {{zap_meta_human_now}} will output a timestamp for the current date and time that the Zap is running. It will not show a date and time preview in the Zap Editor, it will only output the timestamp when the step using it is tested or when the Zap is switched on and is running live. You can find out more about this here: Insert the time your Zap runs into a field


Currently, the only way to record when the deal is updated by the Zap would be to add a custom property in HubSpot to record this information in. Then in the Zap you can use {{zap_meta_human_now}} in the custom field for that property so that a timestamp is added to that custom property in HubSpot.