Array in Json from notion DB

Hi everyone,

I have tried to do the following for a while now but I can’t find the answer, help!

  1. get database items from the Notion “Search objects” module (this is working)
  2. extract a specific field from these items (several items are returned) in an array aggre. (screen 1)
  3. create a json and use it as an input to an API call

The problem is that json shows only 1 bundle (screen 2) and not the others. Array has 3 elements.




Last screen shows the properties

Instead of an Array Aggregator and a Create JSON module, you should be using a Text Aggregator module.

If you need further assistance, please provide the following:

  • Output bundle of Notion module
  • Required JSON output format example
2 Likes

thanks for your help.


I’d like to have:
g/n : <value of g/n in notion>
date :
alimento :

for each elements. Now I have only for the first one.
I will use JSON module to call a WebHoocks and pass it

Sorry, please no screenshots of output bundles.

Click the white speech bubble on the top-right of each module and select “Download output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

2 Likes