Flexi Kanban
  • Introduction
    • πŸ“ƒAbout Flexi Kanban
    • βš–οΈFlexi Kanban in Comparison with Other
    • πŸ“˜What are Kanbans?
    • πŸ“•User's Guide to the Kanban Boards
  • Standard Dashboard
    • πŸš€Getting started
      • How to Build a Simple Kanban Using Creation Wizard Abilities
      • Demo Example: Task Dashboard
      • Demo Example: Events Dashboard
      • Demo Example: Opportunities Dashboard
      • Demo Example: Gantt Dashboard
      • Demo Example: Cases Dashboard
    • πŸ“Basics
      • How to Create Standard Dashboard
      • How to Create Child Dashboard
      • How to Incorporate Child Dashboard into Lightning Page
      • How to Open Dashboard in builder (Edit)
      • How to Share Dashboard
      • How to Clone Dashboard
    • πŸ—οΈConfigure Dashboard
      • Working with Dashboard Layout
      • How to Configure Dashboard Basic Properties
      • How to Configure Dashboard Filters
      • How to Add Dashboard Statistics
      • How to Configure Variables
      • How to Configure Events
      • How to add Dashboard Buttons and Menus
    • πŸ™οΈConfigure Column
      • How to Π‘onfigure Column Properties
      • How to Set Column Groups
      • How to Set and Use Column Custom Attributes
      • How to configure Column Data Source
      • How to work with Related Objects
      • How to configure Column Header
      • How to configure Column Body
      • How to configure Column Footer
      • How to configure Column Container and Filters
    • 🎫Configure Card
      • How to configure Card Properties
      • How to configure Card Data Source and Conditions
      • How to configure Card Compact Layout
      • How to configure Card Layout
      • How to configure and use Card Custom Attributes
      • Configuring Card Movement and Column Junctions
      • Configuring Card Actions
    • πŸ“šGroups of Cards
      • How to configure Card Grouping
    • πŸ”§Tools
      • Using Merge Field Picker
      • Using Formula Editor
      • Configuring CSS styles
      • Configuring Rows, Cells, Menus and Buttons
      • Configuring Handlers
    • πŸ‘“Using Dashboard
      • How to use Kanban API actions
      • How to Incorporate Dashboard into Lightning Page
      • How to build the link to the Dashboard
      • How to Work with Variables
      • How to debug Dashboard
      • How to Work with Filters and Orders
    • ✨Howtos and Best Practices
      • How to configure communication between Dashboards
      • How to configure communication between Dashboard and Form
      • How to display different layouts for the same kanban card
      • How to design kanban for your needs
        • How to colorize cards
        • How to add a quick-filter column
      • What inactive column can be used for
      • Tips and Tricks
  • Composite Dashboard
    • πŸ—„οΈIntroduction
      • πŸ”§How to Create a Composite Dashboard
    • πŸͺ›Working with Composite Dashboard Layout
      • Configuring Parent Dashboard
      • Configuring Child Dashboard
    • πŸ–‡οΈConnections Between Dashboards
    • πŸ”¬Examples
      • !! Calendar Dashboard
    • πŸ₯‡Howtos and Best Practices
      • How to Pass Variables Between Parent and Child Dashboards
  • Components
    • πŸ“‹Forms
      • πŸ“‘Basics
        • Form Building Overview
        • Working with Form Settings
        • Working with Source Object fields
        • How to Preview the Form
        • How to configure the Form Sharing Rules
        • Understanding the Form Dependencies
        • Working with Conditional Styles
        • Working with Conditions
        • Search Over the Form
      • πŸͺ›Tools
        • Variables
        • Additional Fields
        • Context Object
        • Form Action
        • Event
      • Components
        • Add and Remove Form Components
        • Components Basic Properties
        • Components Validation Rules
        • Styling Form and Form Components
        • String Field
        • Text Area Field
        • Rich Text Field
        • Lookup Field
        • Date Field
        • Datetime Field
        • Time Field
        • Number Field
        • Currency Field
        • Multi-Select Field
        • Picklist Field
        • Option: Section
        • Option: Static Text
        • Option: Image
        • Option: Blank Space
        • Option: File
        • Option: Custom Button
        • Option: Custom URL
        • Option: Nested Form
        • Option: Lightning Component
        • List. Related Lists.
      • Using Form
        • How to incorporate Form into the Lightning Page
        • How to incorporate Form into Screen Flow
        • How to build the link to the Form
        • (unpublished, empty)How to incorporate Form into the Lightning Component
        • How to run Form Action from Lightning Component
      • Tricks, Hints and Best Practices
        • How to configure communication between Forms
        • How to pre-populate form fields
        • Deployment of Forms
        • What Are Parameters?
    • 🀾Actions/Action Groups
      • Basics
        • Working with Actions
        • Working with Action Groups
        • Working with Functions
        • Working with Context objects
        • Working with Conditions
      • Types
        • Validation Rule Action
        • Define Variable Action
        • Create Record Action
        • Update Records Action
        • Delete Records Action
        • Send Email Action
        • Callout Action
        • Execute Apex Action
        • KanBan API Action
      • Using Actions
        • !!unpublished empty!! How to execute Action/Group from the SF Process/Flow Builder
        • How to execute Action/Group through the REST api
        • !!unpublished empty!! How to execute Action/Group from the Einstain Bot
        • !!unpublished empty !! How to execute Action/Group from APEX
      • Best Practices
        • !! How to use Execute in background option
        • !! Deployment Actions/Action Groups
  • πŸ“–References
    • βš™οΈApplication Settings
    • ♾️Functions
      • SObject
      • Text
      • Logical
      • Numeric
      • Date and Time
      • JSON
      • System
      • Charts
    • πŸ—ƒοΈQuery Conditions
    • Apex Data Provider
    • πŸ“How to add a Kanban to Navigation Items Panel
    • πŸ‘₯Manage Licenses
    • πŸͺͺAssign Permission Sets
    • πŸ“¦Deployment
      • Deploying Using Standard Credentials
      • Deploying Using Connected App Authentication
      • How to configure the Salesforce Connected Application for Flexi Kanban deployment
  • Grant Login Access to Support
  • Subscription Plans
  • Support Agreement
  • Access License Agreement
  • Privacy Policy
Powered by GitBook
On this page
  • "Source Object" context object
  • "$User" context object
  • "$Variables" context object
  • "$System" context object
  • "$Settings" context object
  • "$Functions" context object
  • Other Optional Objects
  • "$KanBan" context object
  • "$Card" context object
  • "$Column", "$SourceColumn", "$TargetColumn" context objects
  • "$Form" context object
  1. Components
  2. Actions/Action Groups
  3. Basics

Working with Context objects

Last updated 6 months ago

When you are working with Flexi Kanban actions you can retrieve information about the current environment by using Flexi Kanban context objects. Context objects provides information to your source object, variables, current user, environment ect. You can use this information to setup complex logic on your actions.

The Flexi Kanban application supports the following set of context objects.

"Source Object" context object

When creating an Action you can set a Source object - the type of the object which will be used in action.

When source object is selected you can use its fields to build formulas or to compare its values with query outputs.

Select Context Object Type (1).

Now its fields (2) are available for using in formulas and queries. The application supports fields up to 4 level relationships.

"$User" context object

$User context object allows to work with currently logged in Salesforce user fields.

"$Variables" context object

$Variables context object contains the current context variables set, that you pass to the action/group or defined in previous actions in case of Action Group. But because user can define variables later and/or pass them from external event as parameters, the merge field picker usually contains only variable template field. User should insert it where needed and change "variableTemplate" text to actual variable name:

Parameters that user have passed to the Action, are available as $Variables context object properties.

"$System" context object

$System object contains the organization context information:

  • Date - value that indicating a current day.

  • DateTime - value indicating current day and time.

  • Time - value that indicates current time.

  • SessionID - current APEX session ID value.

  • Timestamp - current DateTime represented as a number of milliseconds since January 1, 1970, 00:00:00 GMT.

  • DomainUrl - base URL of current site.

  • IsBatch - returns true if the action is called from SF Batch.

  • IsFuture - returns true if the action is called from "future" method.

  • IsQueueable - returns true if the action is called from the SF Queue.

  • IsScheduled - returns true if the action is called from the SF Scheduled job.

"$Settings" context object

$Setting custom object allows to use the Flexi Kanban custom settings (Salesforce Custom Settings).

"$Functions" context object

Other Optional Objects

"$KanBan" context object

$KanBan context object is available only when the action is configured on the dashboard designer page and executed from kanban (within kanban context). It allows to get the dashboard specific properties.

  • ContextRecordId - ID of the record which is currently shown on the Record Page kanban is built in.

  • Description - the dashboard Description.

  • Guid - the dashboard unique internal ID.

  • Id - the dashboard Salesforce ID.

  • Name - the dashboard Name.

  • SelectedCards - list of IDs of cards that are selected (Kanban allows to select several cards to make bulk movement or actions)

  • SelectedRecords - list of IDs of records that selected cards are representing

  • SelectedView.IsDefault - boolean value (true/false) indicating is current View set as default or not.

  • SelectedView.Name - name of currently selected View.

  • Theme - the dashboard styling theme.

  • Type - the dashboard Type (Standard/Composite).

  • Variables - all the dashboard Variables in JSON format.

"$Card" context object

$Card context object is available only when the action is configured from the dashboard designer page. It allows to get Card specific info.

  • Id - the card Salesforce ID.

  • Name - the card Name.

  • Guid - the card unique internal ID.

  • Description - the card Description.

  • Index - the position of the Card in the dashboard.

  • KanBan - the card dashboard ID.

  • ObjectType - the object type for which the card is created.

  • SourceId - the ID of the card source record.

"$Column", "$SourceColumn", "$TargetColumn" context objects

$Column/$SourceColumn/$TargetColumn context objects are available only when the action is configured from the dashboard designer page. They allow to get Column specific info.

Select a $Column object if you are creating an action for the column or card. Select $SourceColumn/$TargetColumn objects if you need to make actions related to columns where you're dragging a card from/to.

$SourceColumn - where the card is dragged from $TargetColumn - where the card is dragged to

  • Id - the column Salesforce ID.

  • Name - the column Name.

  • Description - the column Description.

  • KanBan - the dashboard ID where the column is used.

  • Guid - the column unique custom ID.

  • Index - the position of the column in the dashboard.

  • ObjectType - the object type for which the column is created.

  • Status - the column Status.

"$Form" context object

$Form object contains the form-specific context information:

  • Form ID - ID of the current form

  • Virtual Field Name (and similar) - names of the fields added to form (user should know them because list of these fields can be available only in form builder with proper form loaded).

This is not actually an object - selecting this option user can see a list of available.

SelectedView.Id - ID of currently selected (set of filters and orders). Note: system "All Records" view has no ID.

Optionally there can be some additional parameters called . It is something that user added in Column Settings:

🀾
functions
View
custom attributes