I’m trying to create a simple Make automation that creates a new Evernote page every time a Notion database record is added. I can methods for retrieving individual blocks within a page, but how do I get the whole page with formats? I’m looking for the equivalent of this method on Zapier:
Hi Ramon,
Since the Notion API returns each block as a separate bundle, the current only option I see is to aggregate the bundles and then format them in Markdown based on their block type. So, it is feasible with a few steps in Make.
I am not aware of any equivalent of the data shown in your Zapier screenshot - that seems to be a custom utility created by Zapier as far as I can tell
Thanks @Simo. I suspected as much based on other posts, although I’m disappointed we have to figure that step out for ourselves. Do you know of any example Make workflows that show how to do this?
Here is an example, using an inline switch() function on a “Text Aggregator” module. This is a simple and effective approach if you’re not using many different block types. Else, still feasible and a bit more cumbersome to setup because you need to consider all the possible block types and convert them.
The mapped tokens in the screenshot are from a “List page contents” Notion module
Thanks @Simo, I see how you are approaching this. I think this may be a bit too cumbersome for me, and might be brittle with respect to any page formatting beyond the simplest markdown. This definitely seems like something Make should handle for us, i.e. a robust Markdown generator that includes a good test suite and bug fixing over time. I’ll think about an alternate way I could implement this.
There is problem with such transformation in Make, as Notion page content is tree structure so it requires either good recursion or possibility to run python/js code in the middle or having in-the-middle server that will cast this in proper format