Then after I applied map() function I got the multi-dimensional array like this:
I learned many use cases from Make academy, so I knew how to get necessary data from ‘array of collection’, but, I couldn’t figure out how to deal with these multi-dimensional array.
For example, how can I find second sub-array for that the first array is ‘time?’
or can I convert sub-array into collection so that I can use get and map functions?
Great question @s.ho; dealing with arrays and collections in Make drives me bonkers at times.
I’ve not directly used the extract data from HTML tables since that’s not a typical medium for me. However, in looking at the first array, I notice the headers array.
Does that headers array align with column 1 place, col 2 time, …, col 8 price?
If so, then you know what to grab from the second array.
For example, we want the persons count, which per the headers array is position 3, then we’d last(get(marray; 3))
The last works because it’s returning the last array value which is 2.
In sharing your blueprint, I can help further since I’d have something tangible to work with.
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!