# Convert string into array of collections

**URL:** https://community.make.com/t/convert-string-into-array-of-collections/5153
**Category:** Questions
**Tags:** arrays, airtable
**Created:** [November 19, 2022, 2:00pm UTC](https://community.make.com/t/convert-string-into-array-of-collections/5153 "2022-11-19T14:00:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mikolaj](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mikolaj](https://community.make.com/u/Mikolaj)
#### Post date: [November 19, 2022, 2:00pm UTC](https://community.make.com/t/convert-string-into-array-of-collections/5153/1 "2022-11-19T14:00:37Z")

</div>

Hello,  
One of the modules returns the following string → “[https://fileupload.com/some-file.png](https://fileupload.com/some-file.png)”.

How can I convert it to this array using Make built-in functions?

```js
[{ url: "https://fileupload.com/some-file.png" }]

```

This is the format expected by Airtable in file column.

---

<div class="post-metadata">

### Author: ![alex.newpath](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/alex.newpath/32/84_2.png) [@alex.newpath](https://community.make.com/u/alex.newpath)
#### Post date: [November 19, 2022, 2:24pm UTC](https://community.make.com/t/convert-string-into-array-of-collections/5153/2 "2022-11-19T14:24:02Z")

</div>

Just concatenation will work. Create a string literal with the placeholder for your file variable.

The notation in the text will notify the api that you’re sending an array. It’s just text!

So

`[{ url: "<your module output>" }]`

And put it inside the body you are sending to another api call.

---

<div class="post-metadata">

### Author: ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)
#### Post date: [September 7, 2023, 3:05pm UTC](https://community.make.com/t/convert-string-into-array-of-collections/5153/3 "2023-09-07T15:05:05Z")

</div>


