17 Filemaker Scripts Every Beginner Should Learn First: by Sunny Chu
17 Filemaker Scripts Every Beginner Should Learn First: by Sunny Chu
Introduction
FileMaker scripting is one powerful tool to help automate your work. But often times the
sheer number of scripts in FileMaker will overwhelm beginner from learning because it is
very difficult to know where to start.
When I first start out with FileMaker, I had to learn scripting through a lot of guessing and
even more trial & error. And that’s mostly because…
This makes it hard to search for tutorial I need. So I end up spending a lot of my time in
the dark, trying to guess the keyword involved so I can find the right tutorial.
(1) Important foundation building blocks you likely can’t live without.
Learning these scripts first will likely yield the fastest result in progress.
The recommended learning method is to look at each of the script step and start
searching for tutorials related to them, and focus on learning them 1 by 1. And once you
understand on a basic level what they do. Try to combine multiple of them together.
And if you like to have a more guided step by step learning experience, you can also
consider checking out my course FileMaker DIY Automator. Not only will the course walk
you through all 17 scripts listed. It is also going to provide you with practice examples of
how to mix and match them together in different situations.
But for now, don’t worry this too much. You can totally learn most of the scripts with the
help of only Google + internet (thats how I did it anyway). So just sit back, and enjoy this
guide!
A. Scripting foundation
The below scripts are the fundamental of FileMaker scripting, it’s the foundation piece in getting
computer to do what you want. If you are experienced with programming, you will easily find the
counterparts of similar function in other coding language.
It will move you to another Also, in a lot of case you will want to add record in another table,
layout and you will need to go to a layout base on that table to do that.
Repeatedly do the same thing For example, it enable you to tell the computer to change a text
field to uppercase for 10000 records in just a click of a button.
Go to Record / Also, by combing the “Loop” with “Go to next record”. You can
tell computer to…
Request / Page
1. Do X to this record,
If / Else / End If
Using the “If” conditional statement, you can grant your
Allows you to create a computer ability judge situation and take appropriate action.
conditional command,
basically “if this, do X… Also very essential in automation / computer coding in general.
otherwise do Y”
Why do you need temporary data? A lot of times when you are
creating an automation, you will need the computer to memorise
something first so you can retrieve it later.
Set Variable
2. Go to another layout
C - Create
R - Read
U - Update
D - Delete
Below are the specific script steps that enable you to carry out the essential CRUD function to run
your database smoothly.
If you are a beginner, I highly recommend to start with section B first. As section A usually requires
a combination of multiple script steps to see effects, it is harder to learn; whereas majority of the
scripts listed below can be useful just by itself.
Create a new record Being able to add record and delete record is a part of working
with a database. It is both the C and D element in CRUD.
Delete Record / Request
Delete your current record
Set Field Since FileMaker is a database software, being able to modify &
update the value inside a field is super important. It is the U in
Change data in a field CRUD to be able to update field data.
Same as quick find, but quick find will search through all the
Perform Find fields in your existing layout.
Perform a search base on a This is a more precise function that allows you to specify
specify criteria which exact field you want to search.
For example, if you have a job order database, you will almost
Sort Records always want to prioritise the task that are near due, right? In
that case you can achieve that by sorting the due date so the
Sort record in your desired order near due task is always on top.
This is also part of the R element in the CRUD to be able to
read information according to your sorting preference.
Show All Records After perform a search, you will see less record in your layout
table. And the “Show all record” scripts will display all your
Remove all search filter and show record in the table again.
all record again.
Most of the steps is relatively easy to learn and have tangible visible result. They are great for
instant gratification and not to mention a great way to “wow” your co-workers.
They are not of the highest priority to learn. The top priority is to learn section A & B first, because
those are the true fundamentals of FileMaker scripting. Once those are set, you will have no
trouble learning any new utility scripts.
Import record automatically This allows you to set up the import rule once, and next time you
base on pre-defined rule can just import all information into the system with a click of a
button.
Save Records as excel Since you can import excel data, it is only natural you would want
some way to export excel data so you can distribute excel files to
Save your current table’s people not using FileMaker.
record as excel
Save your current layout as This is very useful for transaction document like quotation, invoice
PDF and payment receipt. Also for creating analytic / summary report
as well.
Send Mail
I use it almost everyday to send quotation & invoice to my client.
Send email with customised Typing these standardised email can be a major time burn, but
title, text, attachments since I automated the process, I not longer have to spend hours
doing it manually.