Object Timeline
Show activities and any standard or custom object records together on one timeline.
GridMate provides a component to display records in a timeline. GM - Object Timeline is highly configurable to display any kind of object as a timeline.
Salesforce standard Activity Timeline supports Activities ( Emails, Tasks, Events, Lists emails, Logged calls ) in accounts, cases, claims, contacts, contracts, insurance policies, leads, opportunities, and activity-enabled custom objects. GM - Object Timeline will cater for activities as standard timeline and any standard/custom object.
In this tutorial, we will setup a custom timeline and configure fields to display tasks/events and the opportunity object on the same timeline. Below is a quick demo on how to configure the GM - Object Timeline component in the opportunity record page.
Below is the JSON Config configured for the demo.
The most important property is the Timeline Configuration which a user needs to insert as a JSON string similar to the below block of code.
The component can be configured as follows:
objectApiName: Object API name you need to configure.
refFieldApiName: Reference field API name to retrieve related records based on the current record. In this case, using
WhatIdwill retrieve all tasks related to the opportunity.titleField: Field API name to display the title.
dateField: Field API name to display the date.
detailFields: Array of fields to display as a detail view.
filter: JSON string to define filter criteria. Don’t forget __c for custom fields.
See GM - RelatedList Grid filter property for more details.
overdueExp: Logical expression to check if the activity is overdue. The expression is evaluated only if the activity date is in the past. If the activity is overdue, it will be displayed at the top of the timeline.
recordActions: Configure record actions to support editing, viewing, initiating a custom action, or running a flow.
visibility: Optional rule on a record action. The action is displayed only on entries matching the rule; same syntax as
filter. See Action Visibility.
Action Visibility
Add a visibility rule to a record action to show it only on the timeline entries that match. Actions without a rule are always displayed, and the fields used by a rule are queried automatically. Rules can be combined with and / or.
In the configuration below, View is always available while Edit is hidden on completed tasks.
Global Actions
Global Actions add a menu to the timeline header, next to Refresh. Each action runs a Salesforce quick action or a screen flow in a modal, using the current record as context. When the action completes, a success toast is displayed and the timeline reloads automatically.
In the example below, a sales rep logs a follow-up task on an Opportunity directly from the timeline.
The flow: GM - Timeline Follow-up is a screen flow that asks for a Subject, a Due Date, a Priority and optional Comments, then creates a Task linked to the Opportunity and assigned to the current user. The flow receives the Opportunity Id through its recordId input variable.
The configuration: paste the JSON below into the Global Actions property of the component, and check Show Header.
Each action can be configured as follows:
name: Unique key of the action. For a quick action, use the quick action API name.
label: Text displayed in the menu and used as the modal title.
component: Optional. Set to
gmpkg:DataGridCallFlowComponentto run a screen flow. If omitted, the action runs a Salesforce quick action.modalSize: Optional. Size of the modal:
small,mediumorlarge. Default ismedium.attributes: Optional. Parameters passed to the action.
flowName: API name of the screen flow to run.
recordIdParam: Name of the flow input variable that receives the current record Id.
inputVariables: Optional array of extra flow inputs (ex:
[{"name": "source", "type": "String", "value": "Timeline"}]).
To add more actions, add another entry to the array with its own name.
Below is a quick demo of the Object Timeline Global Actions, where the user can log a follow-up task from the timeline header and see it appear on the timeline without leaving the record page!
Next steps
Last updated
Was this helpful?