cpiro - Hi everyone! I'm trying to implement it...
# dev-help
c
Hi everyone! I'm trying to implement it as a "Code-based custom action" by following https://developers.thoughtspot.com/docs/code-based-custom-action, in particular by providing
customActions
to
init
. But if I specify
position: CustomActionsPosition.CONTEXTMENU
, it seems no matter what else I specify for
target
or the other parameters, I never see a context menu item for that action. Are there any tricks to getting this to work? I've already tried adding the following to both the init constructor and as a prop to ... it passes validation, but no context menu item appears anywhere, no matter which permutation of the commented out fields I supply:
Copy code
customActions: [
                {
                  name: "test",
                  id: "cpiro-test",
                  position: CustomActionsPosition.CONTEXTMENU,
                  target: CustomActionTarget.VIZ,
                  // metadataIds: {
                  //   answerIds: [answerId],
                  // },
                  // dataModelIds: {
                  //   modelIds: [modelId],
                  //   modelColumnNames: [`${modelId}::User Full Name`, "User Full Name"],
                  // },
                },
              ],
a
Hey, @cpiro Can you please tell me your cluster version and SDK version? And are you passing any restriction of metadataIds or dataModelIds when it is not working for you?
c
Hi @aditya_41082! I've tried both SDK version 1.40.1 and 1.43.0 with no success. What exactly do you mean by "cluster version"? The RDS instance we've given ThoughtSpot Cloud access to is at engine version 16.8. I've tried configuring the custom action as shown (with
metadataIds
and
dataModelIds
commented out) and also with just
metadataIds
, just
modelIds
, just
modelColumnNames: ["User Full Name"]
, just
modelColumnNames: ["${modelId}::User Full Name"]
, and each of the 16 total permutations of including and not including all of the above
a
Your ThoughtSpot cluster cloud version.
If it is 10.14 and above and if you are still facing the same issue. We can jump on a quick call because this is not reproducible on my end
c
I'm sorry @aditya_41082 how do I check our "ThoughtSpot cluster cloud version"? I'm not sure what that is, and the both the regular documentation search and AI-generated answer from https://laurel.thoughtspot.cloud/#/develop/documentation/en/?pageid=ask-docs are unhelpful (the payload
data
here does not have a field
version
) https://cdn.discordapp.com/attachments/1438229734201884777/1438919129334808636/Screenshot_2025-11-14_at_10.47.47_AM.png?ex=6918a15e&is=69174fde&hm=46d823171cad34a7d2f6f9edc1cf2260d1f945d3ec93ed174e1c851e7f09af92&
a
Can you please share your TS URL? I will check
I'm free for the next two hours, and tomorrow I'm free from 10 am – 12 noon and 1–6 pm EDT (UTC-5)
a
Ok. Let me know if you are available to connect now
c
@aditya_41082 I'm in a different timezone. I can meet now for the next 8 hours
a
Ok are you available now?
Looks like you are not available right now. This is my email - aditya.mittal@thoughtspot.com. Can you please send a calendar invite for tommorow for the same time (around 9 - 11 PM ) IST
c
Hi @aditya_41082
a
Hey Chris, looks like you have not added meeting link. Available to connect now?
c
Yes, however you would prefer
a
let's connect on discord. Sent you request.