# Import files to the filecabinet in netsuite

**URL:** https://connective.celigo.com/t/import-files-to-the-filecabinet-in-netsuite/1130
**Category:** Integrator.io
**Tags:** ftp, file-transfer, import, handlebars, netsuite
**Created:** [November 3, 2021, 4:28pm UTC](https://connective.celigo.com/t/import-files-to-the-filecabinet-in-netsuite/1130 "2021-11-03T16:28:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rossorr](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rossorr](https://connective.celigo.com/u/rossorr)
#### Post date: [November 3, 2021, 4:28pm UTC](https://connective.celigo.com/t/import-files-to-the-filecabinet-in-netsuite/1130/1 "2021-11-03T16:28:00Z")

</div>

I am trying to import files into the file cabinet from an ftp. Specifically I am trying to import images, and I cannot get the folder name set correctly for Netsuite. How do I identify folder names in netsuite? Also, how do I use handlebars to get the filenames from the ftp?

---

<div class="post-metadata">

### Author: ![coryanderson215](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@coryanderson215](https://connective.celigo.com/u/coryanderson215)
#### Post date: [November 3, 2021, 4:30pm UTC](https://connective.celigo.com/t/import-files-to-the-filecabinet-in-netsuite/1130/2 "2021-11-03T16:30:34Z")

</div>

Ross - you need to use the internal id of the folder.

 ![5301043caa20740200000001-6995f5fa305145a3a92d4b6c04d77086.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/7/77286250ad610721910832e19922f2c0dbfbcf5d.png)

---

<div class="post-metadata">

### Author: ![rossorr](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rossorr](https://connective.celigo.com/u/rossorr)
#### Post date: [November 3, 2021, 4:33pm UTC](https://connective.celigo.com/t/import-files-to-the-filecabinet-in-netsuite/1130/3 "2021-11-03T16:33:42Z")

</div>

thats great, thank you. What about the filename? In the FTP preview of the connection, it doesnt show any file meta data for the files, so I am unsure what should be here. the files are named approprioately, and I guess it should be a handlebars helper, but nothing obvious stands out

---

<div class="post-metadata">

### Author: ![rossorr](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rossorr](https://connective.celigo.com/u/rossorr)
#### Post date: [November 3, 2021, 5:47pm UTC](https://connective.celigo.com/t/import-files-to-the-filecabinet-in-netsuite/1130/4 "2021-11-03T17:47:32Z")

</div>

Ive tried {{fileMeta.fileName}} (bc that object is specified in the retry data), and {{this.fileMeta.fileName}}, and fileName on its own.

keep getting errors like this:   
"Failed to generate netsuite.file.name from template: {{fileName}}. Details: \"fileName\" not defined in the model. - 1:2."

---

<div class="post-metadata">

### Author: ![rossorr](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rossorr](https://connective.celigo.com/u/rossorr)
#### Post date: [November 3, 2021, 6:44pm UTC](https://connective.celigo.com/t/import-files-to-the-filecabinet-in-netsuite/1130/5 "2021-11-03T18:44:13Z")

</div>

btw for anyone that ends up looking for something like this you have to do {{record.fileMeta.fileName}}
