FM.CurrentScriptID
------------------

Queries ID of current running FileMaker script.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FM](component_FM.md) | [5.1](newinversion51.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "FM.CurrentScriptID" ) ### Parameters

none

### Result

Returns number or error.

### Description

Queries ID of current running FileMaker script.  
See also [FM.CurrentScriptName](FMCurrentScriptName.md).  
### Examples

Query ID for current script:

 MBS ( "FM.CurrentScriptID" )  
Query script name and ID:

 MBS ( "[FM.CurrentScriptName](FMCurrentScriptName.md)" ) &amp; " " &amp; MBS ( "FM.CurrentScriptID" )  
### See also

- [FM.CurrentLayoutID](FMCurrentLayoutID.md)
- [FM.CurrentScriptName](FMCurrentScriptName.md)
- [FM.CurrentThreadID](FMCurrentThreadID.md)

### Blog Entries

- [MBS FileMaker Plugin, version 7.5pr3](https://www.mbsplugins.de/archive/2017-10-23/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.1pr2](https://www.mbsplugins.de/archive/2015-03-23/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 23th March 2015 , last changed 23th March 2015

  
[FM.CurrentLayoutName](FMCurrentLayoutName.md) - [FM.CurrentScriptName](FMCurrentScriptName.md)

[HTML Version](FMCurrentScriptID.shtml)