Custom Action - Flow
** Available with minimum Tables package version 1.130.0-3
.
Flow Configuration JSON (Don't use this as it contains comments. use below clean one)
{
"icon": "utility:add_source", //Any utility icon from https://www.lightningdesignsystem.com/icons/
"recordLevel": "single", //Options: single, multiple, single+multiple
"showInToolBar": true, //display in toolbar actions or not(By default available in context menu)
"refreshOnClose": false,
"targetConfiguration":
{
"componentName":"AccountDemoFlow", //Flow Developer Name
"title" : "Account Demo Flow", // Title on the Popup
"bodyCss" : "background-color:red", //Custom CSS
"componentParamsList":
[
{
"name": "recordId",
"type": "String",
"value": "{!selectedRecordId}"
},
{
"name": "objectApiName",
"type": "String",
"value": "{!objectApiName}"
},
{
"name": "relatedFieldApiName",
"type": "String",
"value": "{!relatedFieldApiName}"
},
{
"name": "relatedRecordId",
"type": "String",
"value": "{!relatedRecordId}"
},
{
"name": "source",
"type": "String",
"value": "TablesCustomAction"
}
]
},
"targetType": "Flow"
}
Clean JSON:
{
"icon": "utility:add_source",
"recordLevel": "single",
"showInToolBar": true,
"targetConfiguration":
{
"componentName":"AccountDemoFlow",
"title" : "Account Demo Flow",
"componentParamsList":
[
{
"name": "recordId",
"type": "String",
"value": "{!selectedRecordId}"
},
{
"name": "recordIds",
"type": "String",
"value": "{!selectedRecordIds}"
},
{
"name": "<anyAttribute>",
"type": "<anyFlowSupportedType",
"value": "<anyValue>"
}
]
},
"targetType": "Flow"
}
For flow variables which outputs list of inputs, make sure
type
of that variable is set to just data type & no prefix or suffix related to list, and also make sure input variable in flow is set to accept multiple inputs (collection). In above example,selectedRecordId
outputs single string input &selectedRecordIds
outputs list of string input.