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.

NameValueDescriptionCallback arguments
MakeCopy9Make a copy of the selected object.
  • shellItems (IShellItems ) The shell items being copied. If undefined, uses current selection.
CheckOut10Checkout the active selection.
  • shellItems (IShellItems ) The shell items being checked out. If undefined, uses current selection.
CheckIn11Checkin the active selection.
  • shellItems (IShellItems ) The shell items being checked in. If undefined, uses current selection.
UndoCheckOut13Undo the checkout for the selected object.
  • shellItems (IShellItems ) The shell items whose checkout is being undone. If undefined, uses current selection.
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.
  • shellItems (IShellItems ) The shell items for the target object(s). If undefined, uses current selection.
ConvertToSearchablePDF46Convert to searchable pdf command.
SaveAsPDF50Save the selected object as PDF.
  • shellItems (IShellItems ) The shell items to convert. If undefined, uses current selection.
Delete76Delete the current selected object. Shows a modal dialog for confirmation.
  • shellItems (IShellItems ) The shell items being deleted. If undefined, uses current selection.
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.
  • objectType (number ) The object type ID for the new object.
  • objectType (number ) The object type ID for the new object.
  • isFromDragAndDrop (boolean ) true if triggered via drag and drop.
  • uploadedFiles (any ) Files uploaded via drag and drop.
  • targetFromDrop (null | IShellItems ) Drop target information.
  • clearSelection (boolean ) Whether selection should be cleared.
  • options (any ) Full options object containing TemplateInfo.
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.
  • shellItems (IShellItems ) The shell items to check out. If undefined, uses current selection.
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.
  • shellItems (IShellItems ) The shell items to open. If undefined, uses current selection.
DownloadFile175Downloads the selected file.
  • shellItems (IShellItems ) The shell items being downloaded. If undefined, uses current selection.
OpenFile176Open the selected file.
  • shellItems (IShellItems ) The shell items being opened. If undefined, uses current selection.
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.
  • shellItems (IShellItems ) The shell items to open. If undefined, uses current selection.
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).
  • shellItems (IShellItems ) The shell items being opened. If undefined, uses current selection.
SubMenu_Convert188Convert command which has the different convert child commands.
SubMenu_Show_More189Show more commands.
AddFile190Add File command.
  • shellItems (IShellItems ) The shell items for the target object(s). If undefined, uses current selection.
CopyInternalLink201Copies the link of the object to the pointed out version.
  • shellItems (IShellItems ) The shell items for link copy. If undefined, uses current selection.
SendCheckInRequest202Sends check in request to the user who has checked out a object.
  • shellItems (IShellItems ) The shell items to process. If undefined, uses current selection.
CreateView203Creates a view.
OpenInExternalEditor204Opens the file in the back-end specific external editing system.
  • shellItems (IShellItems ) The shell items to open. If undefined, uses current selection.
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
  • param ({OpenMode: undefined | null | Read | Edit}) Optional open mode.
BrowseRelatedObjects206Browses related objects.
  • shellItems (IShellItems ) The shell items being browsed. If undefined, uses current selection.
SaveNewVersion208Save new version of the file
CopyWebLink209Copies the web link of the object.
  • shellItems (IShellItems ) The shell items for link copy. If undefined, uses current selection.
SPERead210Opens the currently selected object with a native desktop application in read-only mode
  • shellItems (IShellItems ) The shell items to open. If undefined, uses current selection.
ExclusiveEdit211Edit command for exclusive editing (Edit alone).
  • shellItems (IShellItems ) The shell items to check out for exclusive edit. If undefined, uses current selection.
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.
  • shellItems (IShellItems ) The shell items being shared. If undefined, uses current selection.
OpenInExternalEditorWeb215Opens the file in the back-end specific web editing system.

Supported in M-Files Client version 25.12 and later.
  • shellItems (IShellItems ) The shell items to open. If undefined, uses current selection.
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.
  • param ({obj_id: IObjID version: IObjVerVersion location: string }) Optional object/version override for history operation.
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.
  • shellItems (IShellItems ) The shell items to open. If undefined, uses current selection.
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.
  • shellItems (IShellItems ) The shell items for link copy. If undefined, uses current selection.
ShowConflictHistory225Shows the conflict history for the selected object.

Supported in M-Files Client version 26.2 and later.
ConflictHistoryRestore229Restores the selected version from the conflict history.

Supported in M-Files Client version 26.2 and later.
  • param ({location: string }) Optional telemetry location.

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