Audit.SetAuditLogTableName
--------------------------

Sets the table name for the AuditLog table.

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

MBS( "Audit.SetAuditLogTableName"; Name ) 

**MBS**( **"Audit.SetAuditLogTableName"** /\* Sets the table name for the AuditLog table. \*/  
**$Name**) /\* The new name of the table occurrence to use for audit logging. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The new name of the table occurrence to use for audit logging. |  |

### Result

Returns OK or error.

### Description

Sets the table name for the AuditLog table.  
Usually we just have an AuditLog table occurrence. The table can be in a different file and named differently. As long as the AuditLog table occurrence can be found, we can use it.  
### Examples

Name audit log table:

 MBS ("Audit.SetAuditLogTableName"; "AuditLogTest")  
### See also

- [Audit.GetAuditLogTableName](AuditGetAuditLogTableName.md)

### Release notes

- **Version 15.2**
    - Added [Audit.GetAuditLogTableName](https://www.mbsplugins.eu/AuditGetAuditLogTableName.shtml) and [Audit.SetAuditLogTableName](https://www.mbsplugins.eu/AuditSetAuditLogTableName.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 15.2](https://www.mbsplugins.de/archive/2025-05-13/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.2pr4](https://www.mbsplugins.de/archive/2025-04-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 16th April 2025 , last changed 16th April 2025

  
[Audit.Hash](AuditHash.md) - [Audit.SetDateAndTimeAsNumbers](AuditSetDateAndTimeAsNumbers.md)

[HTML Version](AuditSetAuditLogTableName.shtml)