Filter not set correctly


scen2
scn3

hi.
I would like to add a tag on mailchimp to start a journey, if the customer is new and has made the first order.
the woocom metadata I need is the one in the photo, I think. However, I can’t set the filter correctly (“if the metadata value with that key is 1, then…”)
where am I going wrong? thank you very much.

Welcome to the Make community!

You cannot insert text like “wc_order_count_wpuo” like that between the square brackets.

You will have to use the built-in map function.

e.g.:

{{ first(map(2.metadata; "value"; "key"; "wc_order_count_wpuo" )) }}

For more information, see the Make Academy.

If you need further assistance, please provide the following:

Please provide the output bundles of the modules 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”.

A. Upload as Text File

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

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

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!

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

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.