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.

Find File to Import

Featured Replies

  • Newbies

I need to import a file which is always located in the same directory. The file always starts with "SEL". One week the import file is SEL01X.xls, the next week it may be SEL28W.xls. I would like for FileMaker to automatically find this file in the designated directory and import it. After the import then for FileMaker to automatically rename the file from SELxxx.xls to XSELxxx.xls, so that it would not import automatically again, because it placed a "X" in front of the file name. Can this be done and how? Thanks.

A saved FileMaker Import script step (no dialog) will always import from the same named file and location; so the file needs to be named the same.

FileMaker cannot manipulate files, at all. If you're on a Mac, AppleScript can easily. On Windows there are either commands, or plug-ins. I use the Troi File plug-in on cross-platform solutions.

I'd do it like this. Have a "files to import" folder, and a "files done" folder.

Put the new files in the import folder (which is in a known location).*

Troi can get a list of file names in that folder; put it in a multi-line global field.

Go down the list, one line at a time; put the name in a 1-line global field.

Reconstruct the file path, with the folder path & the name.

Rename the file to the fixed name that the FileMaker Import expects.

Import.

Move/rename the file to its original name, move into the Done folder (this is one step).

Repeat with next file. Stop when there's no files left (duh, but you have to tell it, 'cause this is a loop).

*You can use the Get (FilePath) function for the FileMaker database file's location. Construct the Import folder's path from it's relative relation to the database file. That way it'll work on any computer. Troi can also give you the path of the Desktop, if that's more convenient. Or you can put a Shortcut (Alias) of the real folders on the Desktop.

(P.S. Put your FileMaker version and platform into your account profile here on FM Forums, so we know which version/terms to tell you about.)

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.