Skip To Content
Back to Help Center

Configuring a Calendar to Use a Salesforce Flow | LWCCategorized in LWCCategorized in LWC Admin Guide

You can create, edit, and delete records right from your calendar if the calendar is configured with a Salesforce Flow. This article shows you how to set up calendar Flow functionality using the steps outlined in the following sections:

  1. Create a Salesforce Flow
  2. Enable Quick Creation Mode Select
  3. Set the calendar’s Create Form to Flow
  4. Set Flow variables

1. Create a Salesforce Flow

Assuming a suitable Flow does not exist, create one by following these steps:

  1. Navigate to Salesforce Setup > Flows.
  2. Click New Flow. This brings up the Flow Builder.
  3. Build your flow using Flow Builder. For help, refer to the following Salesforce documents:

2. Enable Quick Creation Mode Select

Enable the Quick Creation Mode Select setting by following these steps:

  1. Click the CalendarAnything gear icon to navigate to Settings.
  2. Under General Settings, click Advanced.
  3. Select the checkbox labeled Quick Creation Mode Select to set it to TRUE.
  4. Click Save.

3. Set the calendar’s Create Form to Flow

Configure the calendar Create Form to use a Flow by following these steps:

  1. On the CalendarAnything sidebar, right-click the calendar name and select Edit from the context menu. The Create and Edit Calendars wizard is displayed.
  2. Select Calendar Criteria.
  3. In the Advanced section, select Flow from the Create Form drop-down list.
  4. Click Save.

4. Set Flow variables

Flow Variables provide information to a flow about your Calendar or Record, such as Start Date & Time, End Date & Time, Record ID, and so on. For example, the Calendar Name variable is used to pass the name of the calendar in use when the Flow is initiated.

After the steps in the prior two sections of this article have been completed, Flow variables become available on the Create and Edit Popup step of the Create and Edit Calendars wizard. Three sets of variables can be configured:

  • Create: Variables to pass to the create record flow
  • Edit: Variables to pass to the edit record flow
  • Delete: Variables to pass to the delete record flow

**Almost all variables are optional, but some are required.

Create Flow variables

Variable NameData TypeDescription
Create Flow API NameAPI Name of your flow
Start Date & TimeDate TimeStart Date/Time from the Calendar Criteria tab
End Date & TimeDate TimeEnd Date/Time from the Calendar Criteria tab
SObject NameTextObject Name from the Calendar Criteria tab
Calendar NameTextName from the Name and Color tab
Parent GroupingTextGantt Grouping Default from the Calendar Criteria tab
Child (secondary) GroupingTextGantt SubGrouping Default from the Calendar Criteria tab
Selected ViewTextInformation about View where Create Form is open
Is All Day EventBooleanAll-Day Event checkbox from the Event (applies to Event object only)

Edit Flow variables

Variable NameData TypeDescription
Edit Flow API NameAPI Name of your flow
Record IdTextID of the record being edited
SObject NameTextObject name from the Calendar Criteria tab
Calendar NameTextName from the Name and Color tab
Selected ViewTextInformation about the View where Create Form is open

Delete Flow Variables

Variable NameData TypeDescription
Delete Flow API NameAPI Name of your flow
Record IdsText CollectionID(s) of the record(s) on which user clicks Delete.

Important Notes about Flow API Name variables

Create, edit, and delete flows all contain a Flow API Name variable. In create and edit flows, you can set this variable to CA Form or Salesforce Form to force the application to use the specified form regardless of whether the Create Form on the Calendar Criteria step is set to Flow.

In the example configuration shown above, the CalendarAnything Create Form will be used to create records; the Salesforce Form will be used to edit records; and the Flow named Delete Flow will be used to delete records.

Also note that the Flow API Name can be blank. In this case the Default Form specified in component properties will be used. When the Default Form component property is not specified, CalendarAnything serves as the default.

We don't support Internet Explorer

Please use Chrome, Safari, Firefox, or Edge to view this site.