Get / Map Data from Bundles coming from Search Data Source

Hi there :thinking:

I know this is probably a question asked many times…

I’m getting 2 bundles from a Serach in my Data Store. I would like to use the “Email” field in an email module in the “To” field, when Function=Support. I dont want to use filters in this case since I want to map all relevant emails to one Email module.

It doesn’t seem to be an array, so I’m not able to use the Map function, idially I think it could have solved my problem Map(array,email,Function,Support)…

Any ideas will be welcomed ! :man_dancing: :blush:

You’ll need to use the Array Aggregator first, then provide the output bundle of the aggregated array.

Please provide the output bundle of the Array Aggregator module by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/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-input-bundle.txt (12.3 KB)
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!

3 Likes

Than you @samliew , I managed to solve by adding “Set Multiple Variables” then adding an Array Agregator and then GetMap) to the created array.

image

3 Likes