Mashmatrix Sheet
English
English
  • Mashmatrix Sheet User Guide
  • Introduction
  • Application Overview
  • Basic Usage
  • Functions about Books / Sheets
    • Create a New Book
    • Change Book Setting
    • Duplicate Book
    • Delete Book
    • Open Book in New Tab
    • Change Book Sharing Folder
    • Split Book Screen
    • Create a New Sheet
    • Change Tab Display Order of Sheets
    • Change Sheet Setting
      • Sheet Setting - Basic
      • Sheet Setting - Options
      • Sheet Setting - Filter
      • Sheet Setting - Actions
    • Maximize Sheet
    • Duplicate Sheet
    • Delete Sheet
    • Create a Related Sheet
    • Create a Card Type Sheet
    • Change Card Type Sheet Setting
    • Configure Views
    • Configure Search Form
  • Functions about Displaying Data
    • Change Columns Order
    • Change Column Width / Height
    • Fix Column from Scrolling
    • Sort
    • Filter
    • Change Column Setting
      • Column Setting - Basic Property
      • Column Setting - Options
      • Column Setting - Format
    • Show / Hide Column
    • Add Column
    • Delete Column
    • Group Column Headers
    • Summary Row
    • Formula
    • Function
      • Salesforce Compatible Functions
      • Aggregation Functions
      • Other Extension Functions
    • Reference Value
    • Navigate Pages and Reload Records
  • Functions about Editing Data
    • Edit / Save Displayed Data
    • Copy & Paste Values
    • Create a New Record
    • Duplicate Records
    • Delete Records
    • Lookup Search
  • Functions about Actions
    • Action Button
    • Standard Actions
    • Marketing Actions
    • Custom Actions
    • Approval Request Actions
  • Functions for Advanced Usage
    • Time-Series Matrix Transformation
      • Overview
      • Add Matrix Column
      • Change Matrix Column Setting
      • Show / Hide Column
      • Add Child Column
      • Delete Child Column
      • Format
      • Matrix Column and Formula
      • Limitations
  • Settings for Admin
    • Assign License
    • Grant Permission Set
    • Administration Console
    • Organization-Level Configuration
  • Customization
    • Access Sheet Directly with URL
    • Sheet Component
    • Embed Sheet in Layout using Visualforce
    • Using Sheet Component in Visualforce
    • JavaScript API
    • Launching Custom Apex / Visualforce
    • Launching Flow
    • Using in Experience Cloud
Powered by GitBook
On this page
  • Invoke Visualforce Page
  • Invoke Apex Code
  1. Customization

Launching Custom Apex / Visualforce

PreviousJavaScript APINextLaunching Flow

Last updated 3 years ago

By using the custom action function, it is also possible to call Apex code and Visualforce pages developed on Salesforce from Mashmatrix Sheet.

Invoke Visualforce Page

To invoke a Visualforce page, enter the URL in the following format in the Page URL from the Open URL action.

/apex/{Visualforce Page Name}

If it has a namespace, such as a Visualforce page included in the management package, enter the URL in the following format:

/apex/{Namespace Prefix}__{Visualforce Page Name}

Specify the parameter name appropriately from the detail setting of the action. From the Apex controller of the Visualforce page, it is possible to get the parameter value with the following code.

ApexPages.currentPage().getParameters().get('id');

Invoke Apex Code

If you want to invoke custom logic written in Apex from the Sheet, it is most effective to start it once via a flow. See "" for information on how to start a flow with a custom action.

To call Apex from a flow, you must have an Apex class with a static method that implements @InvocableMethod. For more information, please refer to Salesforce's help and developer documentation.

Startup Flow