Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is it possible to import csv data from a URL?

Featured Replies

Hi there,

I'm trying to find a way to import csv data from a URL.

We already have some scripts importing xml data from url's but we now need to do the same for CSV.

I don't want to download a file and then import that - just want to import directly from the url.

Is this even possible?

No, it's not. However, the process of downloading and importing can be automated.

You could use the script step 'Insert from URL...' To download the csv file into a container field and then set a file path variable such as $path to something like:

Get(TemporaryPath) & "myfile.csv"

Then use script step 'Export field contents' to save the csv in the container field to the $path and from there do the Import Records script step to import the csv data from $path

Hope this helps...

Edited by Sky Willmott
Typo

  • Author

Thanks for your replies - much appreciated.

My problem is that I'm on a shared FM server that doesn't allow saving of files to the server and this script needs to be run on the server every night.

I guess I'll stick to FM XML format.

Will convert it before sending it to filemaker.

  • 2 years later...
On 29/08/2015 at 2:39 AM, comment said:

No, it's not. However, the process of downloading and importing can be automated.

Hi, 

I have a similar situation where I would like to use insert from URL to import an Excel file into a container and then once the Excel file is on my database use it as a source for updating records with the information that the excel file contains. Until now I could only use a file stored on my computer... any ideas if it is possible to set a content of a container field as the source for an import file?

Many thanks!

Hi docasar, 

You should have started your own topic, as it can be confusing when you to reply with a new questions to an existing one from someone else. 

Do you have a reason for the needing to involve a container field, or is it your goal to just create new records, or update an existing ones? In other words, export the Excel file as a Tab Delineated or Comma separated file and then import that into FileMaker.

Lee

2 hours ago, Lee Smith said:

Hi docasar, 

You should have started your own topic, as it can be confusing when you to reply with a new questions to an existing one from someone else. 

Do you have a reason for the needing to involve a container field, or is it your goal to just create new records, or update an existing ones? In other words, export the Excel file as a Tab Delineated or Comma separated file and then import that into FileMaker.

Lee

Hi Lee,

Many thanks for your reply

I apologize if my question may lead to confusion...

Exactly, I would like to download the Excel file from a webpage (insert from URL) and then use the Excel file to create or update new records. It is important that I a container is involved so it doesnt matter from which device the import is made (no path related recurring import). Does this make any sense?

Thanks a lot!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.