# Notion create new/update based on Mailhook input

**URL:** <https://community.make.com/t/notion-create-new-update-based-on-mailhook-input/8423>\
**Category:** Questions\
**Tags:** notion\
**Created:** [February 21, 2023, 12:10pm UTC](https://community.make.com/t/notion-create-new-update-based-on-mailhook-input/8423 "2023-02-21T12:10:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MB](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/mb/32/1601_2.png) [@MB](https://community.make.com/u/MB)\
**Post date:** [February 21, 2023, 12:10pm UTC](https://community.make.com/t/notion-create-new-update-based-on-mailhook-input/8423/1 "2023-02-21T12:10:50Z")

</div>

I’m adding content from a Mailhook to a Notion database and I want to be able to identify existing records through an ID Key that is generated as a portion of the Subject string from the Mailhook.

So I set up this Search Objects module, but when I test the scenario with a record whose ID already exists in my Notion database it is not found by this module.

Can anyone suggest a fix?

 ![Screenshot 2023-02-21 at 12.02.35](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/c/c1795fe3e8b27cd4e74208fcb6578b62fc5d5b25.png)

---

<div class="post-metadata">

**Author:** ![ManishMandot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/manishmandot/32/25887_2.png) [@ManishMandot](https://community.make.com/u/ManishMandot)\
**Post date:** [February 21, 2023, 5:18pm UTC](https://community.make.com/t/notion-create-new-update-based-on-mailhook-input/8423/2 "2023-02-21T17:18:21Z")

</div>

I think because of the wrong ID value being passed into this module.

Visit the history tab of that scenario and see the input and output of that particular module.

---

<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:** [September 7, 2023, 3:38pm UTC](https://community.make.com/t/notion-create-new-update-based-on-mailhook-input/8423/3 "2023-09-07T15:38:39Z")

</div>


