MongoDB.TransactionState
------------------------

Returns the current transaction state for this session.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MongoDB](component_MongoDB.md) | [12.5](newinversion125.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "MongoDB.TransactionState"; MongoDBRef ) 

**MBS**( **"MongoDB.TransactionState";** /\* Returns the current transaction state for this session. \*/  
**$MongoDBRef**) /\* The reference number for the mongo connection.e.g. $MongoDB \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MongoDBRef | The reference number for the mongo connection. | $MongoDB |

### Result

Returns value or error.

### Description

Returns the current transaction state for this session.  
Value is None, Starting, InProgress, Committed or Aborted.  
### Release notes

- **Version 12.5**
    - Added [MongoDB.StartTransaction](https://www.mbsplugins.eu/MongoDBStartTransaction.shtml), [MongoDB.CommitTransaction](https://www.mbsplugins.eu/MongoDBCommitTransaction.shtml), [MongoDB.InTransaction](https://www.mbsplugins.eu/MongoDBInTransaction.shtml), [MongoDB.AbortTransaction](https://www.mbsplugins.eu/MongoDBAbortTransaction.shtml) and [MongoDB.TransactionState](https://www.mbsplugins.eu/MongoDBTransactionState.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 12.5 News](https://www.mbsplugins.de/archive/2022-11-17/MBS_FileMaker_Plugin_125_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.5pr1](https://www.mbsplugins.de/archive/2022-09-29/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 23th September 2022 , last changed 23th September 2022

  
[MongoDB.Trace](MongoDBTrace.md) - [MongoDB.UpdateMany](MongoDBUpdateMany.md)

[HTML Version](MongoDBTransactionState.shtml)