Bundles to associative array

Which output do you prefer?

1.

Screenshot_2024-09-01_190951

2.

Screenshot_2024-09-01_190905

Yes, that is possible. You’ll need a minimum of three modules:

This is just an example. Your final solution may or may not look like this depending on your requirements.

Module Export - quick import into your scenario

You can copy and paste this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.

  1. Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the right of the code, which looks like this:

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.

  3. Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.

JSON module export — paste this directly in your scenario

{"subflows":[{"flow":[{"id":37,"module":"json:ParseJSON","version":1,"parameters":{"type":""},"mapper":{"json":"[{\"object\":\"page\",\"id\":\"notion table id\",\"created_time\":\"2024-08-28T15:18:00.000Z\",\"last_edited_time\":\"2024-08-31T00:45:00.000Z\",\"created_by\":{\"object\":\"user\",\"id\":\"notion user id\"},\"last_edited_by\":{\"object\":\"user\",\"id\":\"notion user id\"},\"cover\":null,\"icon\":null,\"parent\":{\"type\":\"database_id\",\"database_id\":\"parent id\"},\"archived\":false,\"in_trash\":false,\"properties\":[{\"id\":\"Mnck\",\"type\":\"checkbox\",\"checkbox\":true,\"label\":\"Accueil\"},{\"id\":\"rUtu\",\"type\":\"rich_text\",\"rich_text\":[{\"type\":\"text\",\"text\":{\"content\":\"3\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"3\",\"href\":null}],\"label\":\"Valeur\"},{\"id\":\"title\",\"type\":\"title\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Nb_conseils\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Nb_conseils\",\"href\":null}],\"label\":\"Identifiant\"}],\"url\":\"https://www.notion.so/Nb_conseils-somerandomstring\",\"public_url\":null,\"properties_value\":{\"Accueil\":true,\"Valeur\":[{\"type\":\"text\",\"text\":{\"content\":\"3\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"3\",\"href\":null}],\"Identifiant\":[{\"type\":\"text\",\"text\":{\"content\":\"Nb_conseils\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Nb_conseils\",\"href\":null}]},\"__IMTLENGTH__\":2,\"__IMTINDEX__\":1},{\"object\":\"page\",\"id\":\"notion row id\",\"created_time\":\"2024-08-02T11:45:00.000Z\",\"last_edited_time\":\"2024-08-28T14:48:00.000Z\",\"created_by\":{\"object\":\"user\",\"id\":\"notion user id\"},\"last_edited_by\":{\"object\":\"user\",\"id\":\"notion user id\"},\"cover\":null,\"icon\":null,\"parent\":{\"type\":\"database_id\",\"database_id\":\"notion database id\"},\"archived\":false,\"in_trash\":false,\"properties\":[{\"id\":\"Mnck\",\"type\":\"checkbox\",\"checkbox\":true,\"label\":\"Accueil\"},{\"id\":\"rUtu\",\"type\":\"rich_text\",\"rich_text\":[{\"type\":\"text\",\"text\":{\"content\":\"Femmes actives et urbaines dans la trentaine.\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Femmes actives et urbaines dans la trentaine.\",\"href\":null}],\"label\":\"Valeur\"},{\"id\":\"title\",\"type\":\"title\",\"title\":[{\"type\":\"text\",\"text\":{\"content\":\"Cible\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Cible\",\"href\":null}],\"label\":\"Identifiant\"}],\"url\":\"https://www.notion.so/Cible-somerandomstring\",\"public_url\":null,\"properties_value\":{\"Accueil\":true,\"Valeur\":[{\"type\":\"text\",\"text\":{\"content\":\"Femmes actives et urbaines dans la trentaine.\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Femmes actives et urbaines dans la trentaine.\",\"href\":null}],\"Identifiant\":[{\"type\":\"text\",\"text\":{\"content\":\"Cible\",\"link\":null},\"annotations\":{\"bold\":false,\"italic\":false,\"strikethrough\":false,\"underline\":false,\"code\":false,\"color\":\"default\"},\"plain_text\":\"Cible\",\"href\":null}]},\"__IMTLENGTH__\":2,\"__IMTINDEX__\":2}]"},"metadata":{"designer":{"x":-53,"y":-1354,"name":"Notion Output"},"parameters":[{"name":"type","type":"udt","label":"Data structure"}]}},{"id":38,"module":"util:TextAggregator","version":1,"parameters":{"rowSeparator":"other","otherRowSeparator":",","feeder":37},"mapper":{"value":"{\n  \"Identifiant\": \"{{37.properties_value.Identifiant[].plain_text}}\",\n  \"Valeur\": \"{{37.properties_value.Valeur[].plain_text}}\"\n}"},"metadata":{"designer":{"x":190,"y":-1356},"parameters":[{"name":"rowSeparator","type":"select","label":"Row separator","validate":{"enum":["\n","\t","other"]}},{"name":"otherRowSeparator","type":"text","label":"Separator"}],"advanced":true}},{"id":39,"module":"json:ParseJSON","version":1,"parameters":{"type":""},"mapper":{"json":"{\"items\": [{{38.text}}]}"},"metadata":{"designer":{"x":434,"y":-1360},"parameters":[{"name":"type","type":"udt","label":"Data structure"}]}},{"id":40,"module":"util:SetVariable2","version":1,"parameters":{},"mapper":{"name":"properties","scope":"roundtrip","value":"{{toCollection(39.items; \"Identifiant\"; \"Valeur\")}}"},"metadata":{"designer":{"x":677,"y":-1364}}}]}],"metadata":{"version":1}}

Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?

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

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!