# Hubspot deals to Notion

**URL:** <https://community.make.com/t/hubspot-deals-to-notion/13892>\
**Category:** Questions\
**Tags:** hubspot, http, api\
**Created:** [August 2, 2023, 2:41pm UTC](https://community.make.com/t/hubspot-deals-to-notion/13892 "2023-08-02T14:41:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blaze](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@Blaze](https://community.make.com/u/Blaze)\
**Post date:** [August 2, 2023, 2:41pm UTC](https://community.make.com/t/hubspot-deals-to-notion/13892/1 "2023-08-02T14:41:45Z")

</div>

Hello,

**Context**  
I would like to retrieve some deals from a specific pipeline from Hubspot and send it to a Notion database. I need to get a few properties to file the DB item properly.

**My issue**  
I succeed in retrieving all property deals with the module _watch deals_ but when it comes to the deal owner, I can only get the Hubspot owner ID, not the name. So I’ve chosen to use the OAuth HTTP method to retrieve the strings (Hubspot owner id). But I keep having a 401 error.

The cUrl has been tested in Postman and the response is ok.

How can I retrieve all strings so they can be implemented properly into Notion?

**Set up**

- Module 1: Watch deals
- Filter: a given pipeline
- Module 2: HTTP OAuth 2.0 (failed to retrieve data from there)

Thanks

---

<div class="post-metadata">

**Author:** ![Jogger\_Meister](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Jogger\_Meister](https://community.make.com/u/Jogger_Meister)\
**Post date:** [October 25, 2023, 9:32am UTC](https://community.make.com/t/hubspot-deals-to-notion/13892/3 "2023-10-25T09:32:09Z")

</div>

Hi there!

Since the Hubspot API throws only the ID of that specific deal, try to use the switch() function instead:

[https://www.make.com/en/help/functions/general-functions#switch--expression--value1--result1---value2--result2---------else--](https://www.make.com/en/help/functions/general-functions#switch--expression--value1--result1---value2--result2---------else--)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/6/76cbab697af338a8f7bbcef36872d1692ca0d52d.png)

Logic is that let’s say, IF the mapped owner ID is 15778480805 then use the “ABC name”, else, if the ID is 57262674, use “DEF name” and so on…

I hope this helps!

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [November 27, 2023, 9:07am UTC](https://community.make.com/t/hubspot-deals-to-notion/13892/4 "2023-11-27T09:07:36Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


