Skip to main content

I’ve been asked to provide this by several clients now. Tasks and Events in one table. Always said it wasn’t possible as a Table component only works with one Model.

That said, there’s no reason the rows from a Event object model wouldn’t work in Table showing rows from a model based on the Task object in Read Only mode. Especially since many of the field API names are exactly the same between the two objects.

So with inline js, the rows from an Event model can have it’s rows adopted into the Task model.

You can then use a checkbox formula to make IsTask available in the Task/Event models. Using this, conditionally rendered row actions for each type can then be used to display custom popups for editing.

Context can be used for both popups on both models to display a popup and edit mode field editor.