Describe the problem/error/question
Merging and Aggregating results into broken JSON
I am getting a binary file from Notion Trigger and when using Notion Get page content, the binary file and Notion database properties are overwritten in the flow and only the Notion Get Page content is passed on. So, I have used a Merge but this means one object doesn’t have all the items as the other. And I also had to use a merge because I couldn’t access the second JSON item properly without it.
In the code node, I’m turning the Notion Page content into a specific format (e.g. Notion to Pinterest description) and passing it along.
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Aggregate Output:
[
{
“id”: “0291155e-64ba-4d48-8590-6f58d669ac19”,
“name”: “7 ways to use AI”,
“property_publishing”: “AI”,
“property_type”: “type”,
“property_media”: [
“https://prod-files-secure.s3.us-west-2.amazonaws.com/5390d420-4529-4fe6-9baa-5f84280642ae/8f8bb6b8-0f8e-4775-9670-302e2b6e32c1/47_OpenAI_announces_GPT_store_launching_next_week.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45HZZMZUHI%2F20240109%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240109T151442Z&X-Amz-Expires=3600&X-Amz-Signature=1819a3d4c76e45725929ea5699261e5cabc3dfbf0144de11664745e73b8eb4ed&X-Amz-SignedHeaders=host&x-id=GetObject”
],
“property_topic”: “AI”,
“property_sub_topic”: null,
“property_post_link”: null
},
{
“pinterestPin”: “This is a test \nThis is 21 2 @pinterest\nThis is line 4\n• sdasadsd\n\nHi\n1. dfsjlkfjdsfl\n2. fdslkjlkdsjfldsf\n\n
\nsklajdsakjhd\nhttps://www.pinterest\n\n#pinterest\nd2323d\n\nIntroduction\nArtificial Intvdfnce (AI) has revolutionized numerous industries with its ability to perform tasks that traditionally required human intelligence. In recent years, AI has also made significant advancements in the creative field. From assisting with content creation to enhancing the overall creative process, AI”
}
]
Merge Output:
Worfklow:
Information on your n8n setup
- **n8n version:**1.23.0
- Database (default: SQLite):
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**own
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**docker
- Operating system:

