How To Use Flexcard Context Variables(salesforce)

Context Variables in Salesforce:

     In Salesforce, context variables typically refer to variables that store information specific to the current context or execution environment. These variables can be used to pass data between different elements of a process or to control the behavior of a process. Context variables can be used in various Salesforce features, including Process Builder, Flows, Apex code, and Lightning components.

—  Global and local context variables are available to a FlexCard to provide context to data sources, actions, and other components. All variables are case sensitive. 

Global Variables —

NAME

  1. Label

 

2. Params

 

3. Parent

 

 

 

4. recordId

 

 

 

 

 

 

5. records

MERGE FIELD

  {Label.mylabel}  

 

{Params.fieldName}

 

 

{Parent.attributeName}

 example, Parent.Id gets the {Id} attribute defined on the parent FlexCard.

{recordId}

 

 

 

 

 

 

{records}

DESCROPTION

For example, {Label.AccountName} gets a custom label named AccountName.

For example, {Params.Id} gets the context Id. We recommend using {recordId} to get the context Id of a record.

Reference attributes from the parent FlexCard on the child FlexCard with this variable. Attributes are defined at design time on the parent FlexCard. correct it.

if using a DataRaptor to get a list of Account Cases, in the Input Map, enter AccountId as Key and {recordId} as the Value. Then add a Test Parameter whose Key is recordId and Value is 138238279r9ff to populate your FlexCard with actual data.

For example, {records} gets all records, while {records [0]} gets the first available record.

Scroll to Top