-
Notifications
You must be signed in to change notification settings - Fork 96
soqlDatatable: Configuration
James Hou edited this page Jan 31, 2021
·
2 revisions
-
Create a Custom Metadata (CMDT) row in
Datatable_Config__mdt.-
Typemust be text of"Actions"or"Actions;Lookups"(no quotes).
-
-
Create a CMDT row in
Datatable_Action_Config__mdt.- Must Lookup to the
Datatable_Config__mdtcreated in step 1. - Follow Page Layout instructions for
Type,Orderetc.
- Must Lookup to the
-
Input the name of the
Datatable_Config__mdtintoAction Configurationin App Builder.- You can reuse the same
Datatable_Config__mdtname inLookup Configurationif you've configured thatTypeto"Actions;Lookups".
- You can reuse the same
-
Place
MessageServiceHandlersomewhere on the App / Record Flexipage or the Utility bar (without a name/icon). See the main configuration for details.
-
Create a CMDT row in
Datatable_Action_Config__mdtand follow the steps to reference a Screen Flow. -
All Screen Flows must implement the following input variables:
Name Type Description SelectedRows SObject[] Choose the correct Object type in a Record Collection. FirstSelectedRow SObject First Selected Row, choose the correct Object in a Record variable. UniqueBoundary String For Dialog Auto CloseorEvent Publisherto refresh the table that opened the Screen Flow.SourceRecordId String For Record Pages, the recordId of the record that the soqlDatatableis on.
For App Pages, this is not required.
-
Create a CMDT row in
Datatable_Action_Config__mdtand follow the steps to reference a custom LWC. -
All custom LWC can optionally implement any of the following
@apivariables:Name Type Description selectedRows [] An array of SObjects: [{},{},{}]. uniqueBoundary String For messageServiceto know its boundary.
Can also be a unique string of your choice in case you want to usemessageServiceon a different boundary from within the modal body LWC.sourceRecordId String Available on Record Pages, the recordIdof the recordsoqlDatatableis placed on.