Audit.SetUUIDField
------------------

Sets the UUID field name.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Audit](component_Audit.md) | [7.3](newinversion73.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Audit.SetUUIDField"; FieldName ) 

**MBS**( **"Audit.SetUUIDField";** /\* Sets the UUID field name. \*/  
**$FieldName**) /\* The field name.e.g. "UUID" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FieldName | The field name. | "UUID" |

### Result

Returns OK or error.

### Description

Sets the UUID field name.  
If set, we use UUIDs for Record IDs. The name given here should be used in all tables for the unique ID field.  
If no field with that name is in a table, we fall back to the normal RecordID.  
  
Please add a field named UUID to the AuditLog table (and layout), so the plugin can fill and query this field.  
  
You may best call this in start script of the solution to setup Audit as needed.  
### Examples

Defines UUID to be the field where we store unique redord IDs:

 MBS ( "Audit.SetUUIDField"; "UUID" )  
### See also

- [Audit.GetUUIDField](AuditGetUUIDField.md)
- [Audit.GetUUIDFields](AuditGetUUIDFields.md)
- [Audit.SetUUIDFields](AuditSetUUIDFields.md)

### Release notes

- **Version 15.2**
    - Added [Audit.SetUUIDFields](https://www.mbsplugins.eu/AuditSetUUIDFields.shtml) and [Audit.GetUUIDFields](https://www.mbsplugins.eu/AuditGetUUIDFields.shtml) function.
- **Version 7.3**
    - Added UUID mode for Audit. Call [Audit.SetUUIDField](http://www.mbsplugins.eu/AuditSetUUIDField.shtml) please to enable.

### Blog Entries

- [Configure Audit functions in MBS Plugin](https://www.mbsplugins.de/archive/2022-06-10/Configure_Audit_functions_in_M/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.3pr1](https://www.mbsplugins.de/archive/2017-06-05/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 15th May 2017 , last changed 16th April 2025

  
[Audit.SetLogAccess](AuditSetLogAccess.md) - [Audit.SetUUIDFields](AuditSetUUIDFields.md)

[HTML Version](AuditSetUUIDField.shtml)