APIs & Integrations

SGallagher5
Member

Deal Id via webhooks

SOLVE

Hi, 

I am trying to send a Deal Id via a webhook but I can only access merged Id's.

 

Is there a way to do this?


Thanks 

0 Upvotes
1 Accepted solution
SteveHTM
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Deal Id via webhooks

SOLVE

When you say "didn't have any luck" - what exactly are you seeing? 
Experience suggests that you will typically need a timezone indication. Please reference the API documentation for some typical cases.

Example: 2025-03-20T17:56:34.344Z and remember that for a 'date' type the hours/min/sec part will be required to be zeros.

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature

View solution in original post

8 Replies 8
BérangèreL
Community Manager
Community Manager

Deal Id via webhooks

SOLVE

Hi @SGallagher5, I hope that you are well!

Great question, thanks for asking the HubSpot Community!

First, for information, I'd like to share these resources on the topic:

- Webhooks
- Use webhooks with HubSpot workflows

Have you tried using the "objectId"? I can see on this similar thread "Webhook Package doesn't contain Deal ID" that you might use this. Have a look at this thread, it might give you ideas.

I have found for you the solution from @MichaelMa on this post "Create a new Deal via Workflow when a Webhook is received" that might help you!

And you might as well check this thread out "Do Deal Workflow Webhooks Contain Data on the Associated Products?" that might be of interest.

Let me know if you have any questions!

Have a beautiful day! 🌞

Warmly,
Bérangère


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres! !
0 Upvotes
SGallagher5
Member

Deal Id via webhooks

SOLVE

Thanks I've got it now. 

I am now trying to send a date back to into Hubspot via the API. What format does the date need to be in? Is it Unix?

0 Upvotes
BérangèreL
Community Manager
Community Manager

Deal Id via webhooks

SOLVE

Hi @SGallagher5, thanks for the precision!

Here is an article "New Standardization of date formats for HubSpot's Form Submissions API" that can be of interest.

Also, the solution from @Mike_Eastwood on this post "Date format for imports API" and the reply from @SteveHTM might help you!

Let us know if that worked for you?

Have a great day!

Warmly,
Bérangère


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres! !
0 Upvotes
SteveHTM
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Deal Id via webhooks

SOLVE

Most often ISO an format string is what works, but the format needs to be exact (especially regarding a zero minute value if the property you are updating is a date type).

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
SGallagher5
Member

Deal Id via webhooks

SOLVE

thanks Steve.

 

could you give me an example of a correctly formatted date

 

thsnks

0 Upvotes
SteveHTM
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Deal Id via webhooks

SOLVE

Reference: https://en.wikipedia.org/wiki/ISO_8601

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
SGallagher5
Member

Deal Id via webhooks

SOLVE

Hi Steve,

I just tried 2024:09:27T12:00:00 but didn't have any luck with that either. Any thoughts?

Thanks 


0 Upvotes
SteveHTM
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Deal Id via webhooks

SOLVE

When you say "didn't have any luck" - what exactly are you seeing? 
Experience suggests that you will typically need a timezone indication. Please reference the API documentation for some typical cases.

Example: 2025-03-20T17:56:34.344Z and remember that for a 'date' type the hours/min/sec part will be required to be zeros.

 

Steve

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature