Search within collection

In the image below I want to be able to identify which Collection contains the Value 11004 Equipment.

I am fine down to the array highlighted green as it is always the same. its the collections in the box that I’m struggling with. How can I determine which collection has that value when it could be Collection 1 or 2 depending on the output

Welcome to the Make community!

You can use the built-in functions map and get to access variables within an array.

For more information, see the function documentation in the Help Center, and complete the Make Academy as it is explained in further detail there.

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

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.

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

Hello,
If you aren’t able to use the get and map functions.
Can you please share your json data(input / expected output) bundles as @samliew suggest? I can try it.

Also, confirm that your structure is always the same and it will always have that custom required data. If it changed or that custom data is not there then it’s failed or returned blank.


:bulb:P.S.: Always search first, Check Make Academy. If this is helpful, mark it as a solution :white_check_mark: and :+1:
Need expert help or have questions? Contact or comment below! :point_down: