Need Assistance for Error Handling Webhook + JSON + HTTP module (Notion API)

I’m currently using a de-anonymization tool to capture leads from website visitors. This tool is connected to a webhook, and I’ve structured the JSON payload based on a data table in my Notion workspace. I’m using the HTTP module to send POST requests to the Notion API, which populates the data in the table.

However, I’m facing an issue where the data from the de-anonymization tool is inconsistent—it sometimes includes contact information and other relevant data, but other times it returns null, undefined, or empty fields. Despite this variability, I need to ensure that the data, even if incomplete, is still pushed to the Notion data table without causing errors or disruptions.

What’s the best way to handle this scenario so that regardless of whether fields are null, undefined, or empty, the data can still be processed and sent to Notion in a structured way?


I tried doing inline conditions but still giving me an error.

Welcome to the Make community!

You can use the built-in function ifempty

For more information, see the Make Academy and Help Centre.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

1 Like