EIDSDK.SetTrigger
-----------------

Sets the script trigger to notify on events.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [EIDSDK](component_EIDSDK.md) | [10.0](newinversion100.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "EIDSDK.SetTrigger"; FileName; ScriptName ) 

**MBS**( **"EIDSDK.SetTrigger";** /\* Sets the script trigger to notify on events. \*/  
**$FileName**; /\* The name of the FileMaker File that contains the script.e.g. "test.fmp12" \*/   
**$ScriptName**) /\* The name of the script to run.e.g. "MyScript" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FileName | The name of the FileMaker File that contains the script. | "test.fmp12" |
| ScriptName | The name of the script to run. | "MyScript" |

### Result

Returns OK or error.

### Description

Sets the script trigger to notify on events.  
Parameter to the script is CardFound, CardGone, ReaderFound or ReaderGone.  
This function checks for a license.

Created 13th November 2019 , last changed 13th November 2019

  
[EIDSDK.SDKVersion](EIDSDKSDKVersion.md) - [EIDSDK.Sex](EIDSDKSex.md)

[HTML Version](EIDSDKSetTrigger.shtml)