StoreKit.SetUpdatedTransactionsTrigger
--------------------------------------

Sets the script to trigger when transactions change.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [StoreKit](component_StoreKit.md) | [8.2](newinversion82.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "StoreKit.SetUpdatedTransactionsTrigger"; FileName; ScriptName { ; Parameter } ) 

**MBS**( **"StoreKit.SetUpdatedTransactionsTrigger";** /\* Sets the script to trigger when transactions change. \*/  
**$FileName**; /\* The database file name where the script is located.e.g. "test.fmp12" \*/   
**$ScriptName**; /\* The script name.e.g. "MyScript" \*/   
**$Parameter**) /\* Optional; Parameter to pass. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| FileName | The database file name where the script is located. | "test.fmp12" |  |
| ScriptName | The script name. | "MyScript" |  |
| Parameter | Parameter to pass. |  | Optional |

### Result

Returns OK or error.

### Description

Sets the script to trigger when transactions change.  
This method may be called often when something changes on the transactions. So you can check if they still match your state and process changes.  
This function is free to use.

Created 22nd April 2018 , last changed 22nd April 2018

  
[StoreKit.SetRestoreCompletedTransactionsTrigger](StoreKitSetRestoreCompletedTransactionsTrigger.md) - [StoreKit.ShowProductView](StoreKitShowProductView.md)

[HTML Version](StoreKitSetUpdatedTransactionsTrigger.shtml)