Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Users will only see the button if they have access to the specified Apex class

Making a custom button available on mobile

  1. Click on Setup and search for Custom Settings

  2. Click on Manage next to Custom Buttons

  3. Click New

  4. Fill in an appropriate Name and Label

  5. Set the Show On Mobile field to true

  6. Click Save

The button will now be visible on the Salesforce Mobile application. On click, it will perform the logic specified.

Note

Buttons configured for use in the web application may function differently in the Salesforce mobile application. See Salesforce’s mobile docs for guidance on how to adjust custom button solutions for the mobile use case.

Implementing the B25.ExecutableCustomButton interface

...

The ExecutableCustomButtonContext object contains the following data:

Name

Type

Description

reservation

B25__Reservation__c

The Reservation open on the Reservation Form

isRecurring

Boolean

If the Reservation is recurring

recurringReservation

B25__Recurring_Reservation__c

The Recurring Reservation object that belongs to the recurring series of this Reservation, if the Reservation is recurring

dimensionJunctions

Map<String, List<SObject>>

A map of any Dimension Junction objects. Mapped by the API name of the Dimension Junction Object

serviceReservations

List<B25__Service_Reservation__c>

The ServiceReservation currently on the form

The SObjects passed to this method are the SObjects used to render the form and save the data to the database. Any changes made to the objects are propagated to the Reservation Form. If any errors are thrown in the implementation on update, they are shown to the user as a page message. However a failed update does not update the Reservation Form back to its original values, that is the responsibility of the implementation.

...

Filter by label (Content by label)
page
showLabelsfalse
max5
spacesBPD
showSpacefalse
sortmodified
showSpacetypefalsepage
reversetruetype
labelsreservation-form custom-button
cqllabel in ( "custom-button" , "reservation-form" ) and type = "page" and space = "BPD"labelsreservation-form custom-button

Page Properties
hiddentrue

Related issues

...