Thao - Hi Team,
# dev-help
t
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?
a
message has been deleted
a
1. For that, you can pass the liveboardIds for which you want to show custom actions. Currently, we do not support exclude liveboard id as a param. 2. Currently, we do not support dataModelIds restrictions for liveboard level custom actions because a liveboard can be created from multiple data sources. So defining condition of dataSources for liveboard level custom actions is difficult.