Workflows & Lava

You are here:

Workflows & Lava

Workflows and Lava goes together like peas and carrots.

Attribute Values

There may be a time when you'd like to retrieve the data identifier for an attribute. This would be helpful in creating links to pages that would need to know which person, group, etc. you are interested in. You can retrieve the unformatted attribute value by appending a RawValue to the attribute syntax. For example, using a merge field of {{ Workflow | Attribute:'Person','RawValue' }} would return a GUID since that is how the Person type attribute stores its value.

It's important that you understand the internal types of many of the fields you'll be using. Below is a overview of the internal type for each field provided in Rock.

Field Types

Below is a listing of each field type available in your workflow listed how it's stored internally.

Field TypeStored Value
Account A financial account's GUID
Accounts A comma-delimited list of financial account GUIDs
Attribute An attribute's GUID
Attribute Category A category's GUID (the category should be an attribute category)
Benevolence Request A benevolence request's GUID
Binary File A binary file's GUID
Binary File Type A binary file type's GUID
Binary File Types A comma-delimited list of binary file type GUIDs
Boolean 'True' or 'False'
Campus A campus's GUID
Campuses A comma-delimited list of campus GUIDs
Category A category's GUID
Code Editor The text of the code editor
Communication Template A communication template's GUID
Comparison '1' for Equal To, '2' for Not Equal To, '4' for Starts With, '8' for Contains, '16' for Does Not Contain, '32' for Is Blank, '64' for Is Not Blank, '128' for Greater Than, '256' for Greather Than or Equal To, '512' for Less Than, '1024' for Less Than Or Equal To, '2048' for Ends With, '4096' for Between, or '8192' for Regular Expression
Component The GUID of the Entity Type for the selected component
Components A pipe-delimited list of Entity Type guids for the selected components
Connection Activity Type A connection activity type's GUID
Connection Opportunity A connection opportunity's GUID
Connection Request A connection request's GUID
Connection State '0' for Active, '1' for Inactive, '2' for Future Follow Up, or '3' for Connected
Connection Status A connection status's GUID
Connection Type A connection type's GUID
Connection Types A comma-delimited list of connection type GUIDs
Content Channel A content channel's GUID
Currency A decimal value
Custom Checkbox List A comma-delimited list of one or more of the values that are configured for the attribute
Custom Dropdown List A comma-delimited list of one or more of the values that are configured for the attribute
Custom Radio List One of the values that are configured for the attribute
Data View A data view's GUID
Date

The selected date formatted as 'YYYY-MM-DDTHH:MM:SS' or 'CURRENT:#' where # represents a day offset from the current day. To set this using Lava you can use the following: {{ 'Now' | Date:'yyyy-MM-ddTHH:mm:ss' }} .

Date Range Two comma-delimited dates where first date is lower value, and second date is upper value formatted as 'YYYY-MM-DDTHH:MM:SS,YYYY-MM-DDTHH:MM:SS'
Date Time The selected date formatted as 'YYYY-MM-DDTHH:MM:SS' or 'CURRENT:#' where # represents a minute offset from the current time
Day of Week '0' for Sunday, '1' for Monday, '2' for Tuesday, '3' for Wednesday, '4' for Thursday, '5' for Friday, or '6' for Saturday
Days of Week A comma-delimited list of Day of Week numbers (see previous)
Decimal A decimal value
Decimal Range Two comma-delimited decimal values where first number is lower value, and second number is upper value
Defined Type A defined type's GUID
Defined Value A comma-delimited list of defined value GUIDs (if attribute is not configured for multiple values, there should only be one GUID
Defined Value Range Two comma-delimited GUID values where first GUID is the lower defined value GUID, and second GUID is the upper defined value GUID
Email An email address
Encrypted Text The text value encrypted using Rock's Encryption.EncryptString() static helper method
Entity A pipe-delimited GUID and integer, where the GUID is an entity type's GUID, and the integer is the Id of the selected entity
Entity Type An entity type's GUID
Enum The value of the enumeration
Enums A comma-delimited list of the selected enumeration integer values
Event Calendar An event calendar's GUID
Event Item An event item's GUID
Financial Gateway A financial gateway's GUID
Group And Role Three pipe-delimited GUID values where first GUID is a group type's guid, second GUID is a group's GUID, and third GUID is a group type role's GUID
Group A group's GUID
Group Location Type One of the configured group type's location type defined value's GUID
Group Member Type A comma-delimited list of group member GUIDs
Group Role A group type role's GUID
Group Type A group type's GUID
Group Type Group Two pipe-delimited GUID values where first GUID is a group type's guid, and second GUID is a group's GUID
Group Types A comma-delimited list of group type GUIDs
Integer An integer value
Key Value List A pipe-delimited list of two caret-delimited values where first is the selected key, and second is the selected value (ex: 'key1^value1|key2^value2|key3^value3'). If attribute is configured to use a defined type, the values should be the Ids of the selected defined values
Linked Page Either a page's GUID, or two comma-delimited GUIDs where the first is the page's GUID, and second is the selected route's GUID
Location A location's GUID
Markdown The markdown text
Memo The value of the textbox
Merge Template A merge template's GUID
Metric Categories A comma-delimited list of two pipe-delimited GUIDs where the first guid is a metric's GUID, and the second is a category's GUID (ex: MetricGUID1|CategoryGUID1,MetricGUID2|CategoryGUID2)
Metric Entity Five pipe-delimited values where first is the metric's GUID, second is the entity's Id, third is a 'True' or 'False' indicating if metric should be gotten from page context, fourth is a 'True' or 'False' indicating if multiple values should be combined, and final value is a metric categorys' guid (ex: 'MetricGuid|EntityId|False|False|CategoryGuid')
Note Type A note type's GUID
Page Reference Value is in format 'Page.Guid,PageRoute.Guid' but only 'Page.Guid' is required.
Person Badges A comma-delimited list of person badge GUIDs
Person A person alias GUID
Phone Number A formatted phone number
Remote Auths A pipe-delimited list of entity type GUIDs (entity types should only be active authentication components that require remote authentication)
Schedules A comma-delimited list of schedule GUIDS
Security Role A security role (group) GUID
Site A site's Id
Sliding Date Range Five pipe-delimited values where first value is the mode ('All', 'Last', 'Current', 'DateRange', 'Previous', 'Next', or 'Upcoming'), second value is number of time units (may be blank depending on mode), third value is the time units ('Hour', 'Day', 'Week', 'Month', or 'Year'), fourth value is start date if mode is Date Range, fifth value is end data if mode is Date Range (ex: 'DateRange|||5/22/2016 12:00:00 AM|5/24/2016 12:00:00 AM' or 'Previous|3|Week||' )
System Email A system email's GUID
Text The value of the textbox
Time A timespan value formated as 'd.hh:mm:ss.fff'
Url Link The text of the Url
Value List A pipe-delimited list of values (ex: 'value1|value2|value3'). If attribute is configured to use a defined type, the values should be the ID of the selected defined values
Workflow Activity Type An activity type's GUID
Workflow Attribute The key of selected attribute
Workflow Text Or Attribute The contents of Text field or the GUID of selected attribute
Workflow Type A workflow type's GUID
Subscribe To Our Newsletter

Rock is a project of the Spark Development Network.