What are you trying to achieve?
Create a formatted HTML list from Airtable data.
Steps taken so far
Seach Airtable Module (works great)
Set Variable (not looping correctly)
– The looping isn’t working I just get [Collection], [Collection] in my output
Save File to Drive (working)
Screenshots: scenario setup, module configuration, errors
@The_FM_Co
From the screenshot, I think you have to specify the Index between the [ ]
in the Array.
Not sure how to do that, as I pick that choice and it comes in that way. Can I just type it? Do you mean literally "6. Array [index]'. ?
Here is the array and text aggregators as they are now:
and the (still) error
Thanks!
@The_FM_Co
Specify the Index for the Array entered in the Value of the Text Aggregator.
For example, between the [ ]
's in 4. Array[
]: Link
, it refers to entering a number 1 or 2.
If you enter an Index, the format will be something like 4. Array[
1]: Link
.
If you are using Repeater because the word Loop
is used in your first post sentence, I think you can do it by getting the variable i
from Repeater.
However, I am sorry after writing all that, but I don’t think I fully understood what you wanted to achieve.
Do you want to get the following kind of data?
If the following data is correct it seems a bit difficult.
<ul>
<li>
<a href ="${Array[1].Link}"></a>${Array[1].Title} - ${Array[1].Publication}<br>
</li>
<li>
<a href ="${Array[2].Link}"></a>${Array[2].Title} - ${Array[2].Publication}<br>
</li>
<li>
<a href ="${Array[3].Link}"></a>${Array[3].Title} - ${Array[3].Publication}<br>
</li>
</ul>
Thanks. I’m trying to pull a set of records from AIrtable and turn that data into an HTML list. I won’t know how many new records there are at any given time. Does your advise hold for that situation?
If the maximum number of iterations of Repeater is set to the number of records that could be retrieved from Airtable, it should run without problems even if the number of records changes dynamically.