

I'm on a Mac, and have a bash script that works very nicely. Run Shell script on macOS Open the Terminal on macOS.

Version 8.2 allows to specify up to 3 ID parameters. With plugin version 7.2 or later, you can specify fields and table via IDs and the plugin will lookup them for you at runtime. So with FM.DeleteRecords you can easily erase a lot of data if you pass wrong ID! Just FM.DeleteRecord provides the check to make sure only one record matches while FM.DeleteRecords allows several records to be deleted. Please note that FM.DeleteRecord and FM.DeleteRecords are nearly identical. To identify the record you pass the name of the ID field and the value for the record. You pass to this function table name (and optional filename). The value for third ID field to identify the record.ĭeletes an existing record in a table in one line. The name of the third field which provides an unique ID for each record, so we can identify the field. The value for second ID field to identify the record. The name of the second field which provides an unique ID for each record, so we can identify the field. The value for the first ID field to identify the record.ĭata type of parameter must match the data type of the field.Īvailable in MBS FileMaker Plugin 8.2 or newer. The name of the first field which provides an unique ID for each record, so we can identify the field.Ĭan be result of GetFieldName() function as we remove table name automatically. The name of the table to delete record from.Ĭan be result of GetFieldName() function as we remove field name automatically. Can be empty to look for the table in all files.

The file name of where the table is inside. $IDValue3) /* Optional The value for third ID field to identify the record.ĭata type of parameter must match the data type of the field.e.g. $IDField3 /* Optional The name of the third field which provides an unique ID for each record, so we can identify the field.Ĭan be result of GetFieldName() function as we remove table name automatically.e.g. $IDValue2 /* Optional The value for second ID field to identify the record.ĭata type of parameter must match the data type of the field.e.g. $IDField2 /* Optional The name of the second field which provides an unique ID for each record, so we can identify the field.Ĭan be result of GetFieldName() function as we remove table name automatically.e.g. $IDValue /* The value for the first ID field to identify the record.ĭata type of parameter must match the data type of the field.e.g. $IDField /* The name of the first field which provides an unique ID for each record, so we can identify the field.Ĭan be ID of field, so we lookup name by ID.Ĭan be result of GetFieldName() function as we remove table name automatically.e.g. $TableName /* The name of the table to delete record from.Ĭan be ID of table, so we lookup name by ID.Ĭan be result of GetFieldName() function as we remove field name automatically.e.g. Can be empty to look for the table in all files.e.g. $FileName /* The file name of where the table is inside. MBS( "FM.DeleteRecord" /* Deletes an existing record in a table in one line.
