Skip 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.

importing recurring CSV data - do I need a script?

Featured Replies

  • Newbies

Hello,

I'm a relative newbie to relational database design so my apologies in advance. I'm putting together a database to help me track my business expenses, all taken from my monthly CSV credit card data dumps. Many of my expenses will be recurring, i.e. they'll be from the same vendor but sometimes from different addresses. Example: Home Depot has several stores we use. I want to track how much is spent at each store. The same is true for a variety of other types of stores we use.

So, I've set up my little vendor table with a key field, vendor name field, and vendor address. The question is how can I get Filemaker to check the table to see if the vendor at that address exists before creating a record during the CSV import? I don't want to end up with 100+ records for the same Home Depot store.

I think a script will be required but I'm at a loss as to how to write it. Could someone suggest a tutorial, either online or in a book, to which I can turn?

Thanks!

Couple of ways of doing this:

- the FM import has a "update" feature. Check it out in the help file to see if this would work for you. This would identifiy (and update) existing records and create new ones for records you don't already have

- or import into a dummy table and then have a script loop through each imported record and check them against your vendor table

  • Author
  • Newbies

Thanks for the reply.

I'd like to automate the process so that means a script. Can you, or anyone, point me to a good tutorial that would help me write the script? I've been working with ScriptMaker but can't ID which functions would ID the vendor's name, compare it with names already in the vendor table, and then choose to import the record or delete it.

Thanks!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.