Set values of Array to Variables

Hi,
I want to set the values of an Array to Variables, as in my scenarios below:

Thanks.

Welcome to the Make community!

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

For more information, see Mapping with arrays below

Links

Here are some useful links and guides to help you get started and learn more on how to use the Make platform, apps, and app modules —

General

Help Center Basics

Articles & Videos

samliewrequest private consultation

Join the unofficial Make Discord server to chat with us!

1 Like

Hi @Milton_Bengui ,

Welcome to Make Community!

This can be done using a simple get function or a map function. In order to help you further, please share the input bundle of the iterator so that we can recreate it and show you how to use these functions in your scenario.

How to Share Input/Output bundles

To obtain the input and output bundles for each module:

  1. Run the scenario or retrieve it from the History tab.
  2. For each module, click the white speech bubble located at the top-right corner.
  3. Select “Download input/output bundles” from the dropdown menu.

This will allow you to download the necessary data for further analysis and sharing.

Method 1: Attach a Text File

  1. Copy the output data.
  2. Paste the data into a text file.
  3. Attach the text file to your ticket.

Method 2: Direct Sharing

  1. Use the direct sharing option available in the reply section. Please refer to the image below for guidance.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support | Book Live Implementation
Visit us here
Youtube Channel

1 Like

this expression will retrieve the 3 element of the array

{{get(86.Value;3)}}

this will allow you to place this expression in a Set Variable step. The second argument of the get() array function is the array index clearly shown in the bundle output screen shot to the left of the value.

2 Likes

Hi, @alex.newpath
It worked just fine.
Thank you very much it saved me 3 operations in this scenario.
:ok_hand:

3 Likes