Skip to main content

BuiltinCommand

The BuiltinCommand enumeration contains all the ids of the builtin commands that can be hidden, shown, disabled or enabled from the menus. This enumeration is used in conjunction with the SetCommandState method.

NameValueDescription
MakeCopy9Make a copy of the selected object.
CheckOut10Checkout the active selection.
CheckIn11Checkin the active selection.
UndoCheckOut13Undo the checkout for the selected object.
ConvertToSFD31Converts the selection into single-file document.
ConvertToMFD32Converts the selection into multi-file document. This commands works for only one selected object.
ReplaceWithFile33Triggers the file selection dialog for the currenly selected object and replaces that file with the selected file.
ConvertToSearchablePDF46Convert to searchable pdf command.
SaveAsPDF50Save the selected object as PDF.
Delete76Delete the current selected object. Shows a modal dialog for confirmation.
Export79Exports the content of the current view to a CSV file.
ConvertToSingleFilePDF81Converts the selection into single-file PDF.
ConvertToMultiFilePDF82Converts the selection into multi-file PDF.
NewObject87Creates a new Object.
Refresh88Refresh the listing.
RollBack89Rollback command. The rollbacked object is either command argument provided as ObjVer or the current selection in the Listing View.
SubMenu_NewObject101New object command which has the different object type child commands.
CheckOutForCoauthoring129Checks out the object for co-authoring.
ResolveConflictKeepThis134Resolves a version conflict by keeping the changes made in the selected version.
ResolveConflictDiscardThis135Resolves a version conflict by discarding the changes made in the selected version.
ViewInMFDesktop174Open the selected file in the desktop application.
DownloadFile175Downloads the selected file.
OpenFile176Open the selected file.
AddPersonalTab180Add personal tab and send request to server to store related information.
RemovePersonalTab181Remove personal tab and send request to server to store related information.
RemoveFromThisView182Remove object from recent tab and send request to server to update related information.
OpenInDesktopApp183Open file in Native Desktop application using web Companion.
OpenInBrowser184Opens the currently selected object via online office editor.
Follow185Starts following the specified object. While the object is being followed, the current user will be notified if the object changes.
Unfollow186Stop following the specified object.
LaunchDefaultApp187Open the file in associated application in desktop environment (DesktopNext).
SubMenu_Convert188Convert command which has the different convert child commands.
SubMenu_Show_More189Show more commands.
AddFile190Add File command.
CopyInternalLink201Copies the link of the object to the pointed out version.
SendCheckInRequest202Sends check in request to the user who has checked out a object.
CreateView203Creates a view.
OpenInExternalEditor204Opens the file in the back-end specific external editing system.
OpenFileForWeb205Opens the file based on the available options in a specific order for web.
Order
1. Web companion
2. Office for the web
3. Download the document
BrowseRelatedObjects206Browses related objects.
SaveNewVersion208Save new version of the file
CopyWebLink209Copies the web link of the object.
SPERead210Opens the currently selected object with a native desktop application in read-only mode
ExclusiveEdit211Edit command for exclusive editing (Edit alone).
AddToDocumentCollection213Adds the selected object to the document collection.

Supported in M-Files Client version 25.8 and later.
OpenSharingCenter214Opens Sharing Center Dialog with the selected object.

Supported in M-Files Client version 25.11 and later.
OpenInExternalEditorWeb215Opens the file in the back-end specific web editing system.

Supported in M-Files Client version 25.12 and later.
DestroyHistoryVersion216Destroys a specific history version of an object. This command is only available for admin users
in the history view and permanently removes the selected old version from the version history.

Supported in M-Files Client version 26.1 and later.
OpenInExternalEditorWebReadOnly217Opens the file in the back-end specific web editing system in read-only mode.

Supported in M-Files Client version 26.1 and later.
SubMenu_OpenForEditing218Submenu for editing options.

Supported in M-Files Client version 26.1 and later.
SubMenu_OpenForReading219Submenu for reading options.

Supported in M-Files Client version 26.1 and later.
SubMenu_Compare220Compare submenu parent command.

Supported in M-Files Client version 26.1 and later.
CompareWithPreviousVersion221Compares the selected document with its previous version.
Available for DOC/DOCX/PDF/RTF files with more than one version.

Supported in M-Files Client version 26.1 and later.
CompareWithAnotherDocument222Compares the selected document with another document that the user selects from the file explorer.
Available for DOC/DOCX/PDF/RTF files.

Supported in M-Files Client version 26.1 and later.
CompareSelectedDocuments223Compares two selected documents.
Available for DOC/DOCX/PDF/RTF files.

Supported in M-Files Client version 26.1 and later.
CopyWorkspaceLink224Copies the workspace link of the workspace object.

Supported in M-Files Client version 26.2 and later.

Runtime Access

This enumeration is available at runtime on the MFiles global object. Access enum values using MFiles.BuiltinCommand.<value>.

Example:

const value = MFiles.BuiltinCommand.MakeCopy;

See also: MFiles Global Object