Audit.BuildCaches
-----------------

Builds caches for Audit.

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

MBS( "Audit.BuildCaches" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Builds caches for Audit.  
This will query all tables and then all fields in FileMaker and may take a while.  
Data is cached for further Audit caches.  
Usually we build caches as needed on the fly. But calling this function allows you to do it at a time the user has time to wait, like on startup after opening all files.  
### See also

- [Audit.ClearCaches](AuditClearCaches.md)

### Release notes

- **Version 15.2**
    - Fixed an issue with [Audit.BuildCaches](https://www.mbsplugins.eu/AuditBuildCaches.shtml) function missing the FieldName.
- **Version 14.5**
    - Added [Audit.BuildCaches](https://www.mbsplugins.eu/AuditBuildCaches.shtml) function.

### Example Databases

- [Audit/Audit](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Audit/Audit.shtml#6ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 15.2pr1](https://www.mbsplugins.de/archive/2025-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin in Version 14.5](https://www.mbsplugins.de/archive/2025-01-08/New_in_MBS_FileMaker_Plugin_in/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.5pr1](https://www.mbsplugins.de/archive/2024-10-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 28th September 2024 , last changed 28th September 2024

  
[Audit.BaseTableNameForID](AuditBaseTableNameForID.md) - [Audit.Changed](AuditChanged.md)

[HTML Version](AuditBuildCaches.shtml)