Clipboard.GetFileMakerData
--------------------------

Queries the xml text of a FileMaker layout/script object.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Clipboard](component_Clipboard.md) | [4.0](newinversion40.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Clipboard.GetFileMakerData"; Type ) 

**MBS**( **"Clipboard.GetFileMakerData";** /\* Queries the xml text of a FileMaker layout/script object. \*/  
**$Type**) /\* What element type to query.  
Can be "auto" for version 10.1 for automatic type selection.e.g. "Layout" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Type | What element type to query.   Can be "auto" for version 10.1 for automatic type selection. | "Layout" |

### Result

Returns text or error.

### Description

Queries the xml text of a FileMaker layout/script object.  
The result is a XML text which you can store for later.  
The type can be ValueList, Script, ScriptStep, Layout, CustomFunction, Table, Field or Layout12.  
Pass auto as type in version 10.1 or newer to let the plugin look for all types and return the data found.  
  
For server this will query the clipboard of the user account running the server app on the server computer and not the clipboard of any client.  
  
Added type ValueList for FileMaker 16.  
For custom menus in FileMaker 17, please use [Clipboard.GetText](ClipboardGetText.md) function.  
  
Warning: Some settings in script step for import, export or printer setup may not be preserved in copied content!  
### See also

- [Clipboard.GetText](ClipboardGetText.md)
- [Clipboard.SetFileMakerData](ClipboardSetFileMakerData.md)
- [SyntaxColoring.AddContextMenuCommand](SyntaxColoringAddContextMenuCommand.md)

### Release notes

- **Version 10.1**
    - Added auto mode for [Clipboard.SetFileMakerData](https://www.mbsplugins.eu/ClipboardSetFileMakerData.shtml) and [Clipboard.GetFileMakerData](https://www.mbsplugins.eu/ClipboardGetFileMakerData.shtml) functions.
- **Version 7.2**
    - Added ValueList type for [Clipboard.SetFileMakerData](http://www.mbsplugins.eu/ClipboardSetFileMakerData.shtml) and [Clipboard.GetFileMakerData](http://www.mbsplugins.eu/ClipboardGetFileMakerData.shtml).

### Example Databases

- [HotKeys](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/HotKeys.shtml#5ScriptAnchor_)
- [Mac only/Script Workspace Context Menu Commands](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Script%20Workspace%20Context%20Menu%20Commands.shtml#3ScriptAnchor_)
- [Third Party/FileMaker Snippet Storage](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Third%20Party/FileMaker%20Snippet%20Storage.shtml#1ScriptAnchor_)
- [Win Only/Search Scripts](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Search%20Scripts.shtml#1ScriptAnchor_)
- [Win Only/Snippets for Windows](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Snippets%20for%20Windows.shtml#6ScriptAnchor_)
- [XML/XML Colorize](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/XML/XML%20Colorize.shtml#1ScriptAnchor_)

### Blog Entries

- [Goodies 33: Custom context menu commands for FileMaker ScriptWorkspace](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/33-CustomcontextmenucommandsforFileMakerScriptWorkspace.shtml)
- [Define a hotkey to copy field name for layout objects in FileMaker](https://www.mbsplugins.de/archive/2024-11-09/Define_a_hotkey_to_copy_field_/monkeybreadsoftware_blog_filemaker)
- [Adding ChatGPT to the ScriptWorkspace context menu](https://www.mbsplugins.de/archive/2024-09-18/Adding_ChatGPT_to_the_ScriptWo/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.1pr5](https://www.mbsplugins.de/archive/2020-02-24/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [New functions of the MBS Plugin Version 9.5](https://www.mbsplugins.de/archive/2019-11-21/New_functions_of_the_MBS_Plugi/monkeybreadsoftware_blog_filemaker)
- [Define hot keys for functions in the FileMaker development](https://www.mbsplugins.de/archive/2019-11-15/Define_hot_keys_for_functions_/monkeybreadsoftware_blog_filemaker)
- [Add a search and replace command for FileMaker Script Workspace](https://www.mbsplugins.de/archive/2019-11-14/Add_a_search_and_replace_comma/monkeybreadsoftware_blog_filemaker)
- [Custom context menu commands for FileMaker ScriptWorkspace](https://www.mbsplugins.de/archive/2019-10-19/Custom_context_menu_commands_f/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.2pr1](https://www.mbsplugins.de/archive/2017-04-03/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.0pr2](https://www.mbsplugins.de/archive/2014-01-08/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2020, Seite 28 bis 29](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)

This function checks for a license.

Created 18th August 2014 , last changed 21st February 2020

  
[Clipboard.GetData](ClipboardGetData.md) - [Clipboard.GetFiles](ClipboardGetFiles.md)

[HTML Version](ClipboardGetFileMakerData.shtml)