Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
FM.UpdateRecords4
Updates existing records in a table in one line.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
FM | 14.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "FM.UpdateRecords4"; FileName; TableName; IDField1; IDValue1; IDField2; IDValue2; IDField3; IDValue3; IDField4; IDValue4; FieldName...; FieldValue... ) More
Parameters
Parameter | Description | Example |
---|---|---|
FileName | The file name of where the table is inside. Can be empty to look for the table in all files. | Get(FileName) |
TableName | The name of the table to insert record into. Can be ID of table, so we lookup name by ID. Can be result of GetFieldName() function as we remove field name automatically. |
"Assets" |
IDField1 | The name of the field which provides an unique ID for each record, so we can identify the field. Can be ID of field, so we lookup name by ID. Can be result of GetFieldName() function as we remove table name automatically. |
"ID1" |
IDValue1 | The value for the ID field to identify the record. Data type of parameter must match the data type of the field. |
$RecordID |
IDField2 | The name of the field which provides an unique ID for each record, so we can identify the field. Can be ID of field, so we lookup name by ID. Can be result of GetFieldName() function as we remove table name automatically. |
"ID2" |
IDValue2 | The value for the ID field to identify the record. Data type of parameter must match the data type of the field. |
$RelatedRecordID |
IDField3 | The name of the field which provides an unique ID for each record, so we can identify the field. Can be ID of field, so we lookup name by ID. Can be result of GetFieldName() function as we remove table name automatically. |
"ID3" |
IDValue3 | The value for the ID field to identify the record. Data type of parameter must match the data type of the field. |
$OtherRecordID |
IDField4 | The name of the field which provides an unique ID for each record, so we can identify the field. Can be ID of field, so we lookup name by ID. Can be result of GetFieldName() function as we remove table name automatically. |
"ID4" |
IDValue4 | The value for the ID field to identify the record. Data type of parameter must match the data type of the field. |
$ForthRecordID |
FieldName... | A field name to set. Can be ID of field, so we lookup name by ID. Can be result of GetFieldName() function as we remove table name automatically. |
"Model" |
FieldValue... | A field value to use for setting the field in the parameter before. Data type of parameter must match the data type of the field. |
"Test" |
Result
Returns OK or error.
Description
Updates existing records in a table in one line.Same as FM.UpdateRecords, but with four key fields.
Same as FM.UpdateRecord3, but changes multiple records.
You can use FM.ExecuteSQL.LastSQL function to see later what SQL was created and run.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat FieldName and FieldValue parameters as often as you need.
See also
- FM.ExecuteSQL
- FM.ExecuteSQL.LastSQL
- FM.UpdateRecord
- FM.UpdateRecord3
- FM.UpdateRecord4
- FM.UpdateRecords
- FM.UpdateRecords2
- FM.UpdateRecords3
- FM.UpdateRecords5
- JSON.UpdateRecords
Release notes
- Version 14.5
- Added FM.UpdateRecord4, FM.UpdateRecord5, FM.UpdateRecords4 and FM.UpdateRecords5 functions.
Blog Entries
This function checks for a license.
Created 18th October 2024, last changed 18th October 2024