Hi Team,
I’m working on a code-based custom action (
https://developers.thoughtspot.com/docs/code-based-custom-action#_code_based_custom_action_for_liveboards) and have a few questions:
1. If I want to use a custom action across the entire Liveboard but exclude a specific Liveboard, is there a way to do that?
2. If I want to apply a custom action only when it belongs to a specific Liveboard and uses a specific data model, is that possible?
For example:
const customActions = [{
name: 'CA1',
id: 'ca1',
position: CustomActionPosition.PRIMARY,
target: CustomActionTarget.VIZ,
metadataIds: {
liveboardIds: ['lb2-GUID']
},
dataModelIds: {
modelIds: ['model1-GUID']
}
}];
=> The custom action will be displayed on all visualizations of Liveboard lb2, since the liveboardId is present.
=> The custom action will also be shown for all visualizations built using the column(s) of model1.
Is there a way to configure the custom action so that it is applied ONLY when the visualization is on Liveboard lb2 AND uses model1?