ThoughtSpot For Developers

TFD

ThoughtSpot For Developers

Join the community to ask questions about ThoughtSpot For Developers and get answers from other members.

Join

help

dev-help

nosTa - Hi Team,I am trying to figure out how...

Hi Team, I am trying to figure out how BodylessConversation works. I can use the appendChild to add the returned div to my "chat" and it is shown. But the problem is, the returned div size is to small. I can adjust it with some min-height configurations, but even than the iframe itself is not scrollable. Is there any way we can get the actual size of the iframe? const conversation = new BodylessConversation({...
No description

TomerLand - Hey, I want to customize some icons...

Hey, I want to customize some icons in the embedded app, spotter for example I set up the svg in the following public address https://myhost.com/my-icon.svg I added https://myhost.com in CSP connect-src domains and CSP img-src domains rules I added the following link in the sprite config const iconSpriteUrl = 'https://myhost.com/my-icon.svg';...
Solution:
Hey @TomerLand , I suppose your dev.dev.env0 - server hosting the SVG accepting requests from the insights.env0.com - Please check this. ( basically hitting the CORS here ) I hope you have whitelisted everything according to docs. ...

Suvash - Hey team, for the ConversationEmbed, i...

Hey team, for the ConversationEmbed, it seems to be returning an isAppInitialized state. I couldn't find anything about it in docs. Can you please enlighten me?
No description

Tim - Hello 👋 I'm embedding a liveboard, and I...

Hello 👋 I'm embedding a liveboard, and I want to allow my users to add a new visualization. I'm currently doing it with an "Add Chart" button on the host that redirects to a new page with Search embedded. The user can use that to build a viz and add it to the liveboard with the Pin button. I would prefer to have this "Add Chart" button live within the liveboard's "More" menu though. Is there a way to make this happen? I was thinking custom actions, but those appear to only work on a visualizati...

Adriana Abad - Hi everyone, I'm trying a CURL t...

Hi everyone, I'm trying a CURL to obtain a token but I'm getting an error, could someone help me please ?

mad1 - Hi Folks, I want to achieve that even if...

Hi Folks, I want to achieve that even if a user don't have access to ThoughtSpot or not onboarded on Thoughtspot, the embeded thoughtspot dashboard should still be visible to him, once he login. Can you please suggest what should be done to achieve this

Geovane - Hi team, can you help me to update an...

Hi team, can you help me to update an ANSWER title/name through the metadata api? I was hoping to use https://developers.thoughtspot.com/docs/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fmetadata%2Fupdate-metadata-header, but it is hard to know how the payload should look like.... For example: what is the property name for the Answer's name? (just name? answer_name? and etc...)...

Adrian - Hi, I am trying to filter liveboard da...

Hi, I am trying to filter liveboard data by "On or before Today" by triggering a HostEvent.UpdateFilters . Can anyone tell me how the "filter object" should look like?

Tim - How can I delete a liveboard using the RE...

How can I delete a liveboard using the REST API?
Solution:
The endpoint api/rest/2.0/metadata/delete should help you

Tim - Heads up I'm unable to view the #announce...

Heads up I'm unable to view the #announcements channel
No description

Ashot - @shikharTS hello, I’m embedding a Thou...

@shikharTS hello, I’m embedding a ThoughtSpot iframe on my website, but I’m facing an issue where the iframe height doesn’t adjust dynamically when switching tabs inside the iframe. As a result, some charts are getting cut off. Could you please advise on how to make the iframe height adjust dynamically based on its content? If there are any specific configurations or best practices for handling this within ThoughtSpot, I’d appreciate your guidance....
No description

Jeff - Hi, any suggestion on how can we extract...

Hi, any suggestion on how can we extract all the user list in our cluster without any interruption?. Currently, the user api is timing out due to the amount of data in the get request.

TomerLand - Hey. I have a problem with a query....

Hey. I have a problem with a query. I want to create an answer that shows some counts of an entity (that is group by 2 columns) and the total percentage of the total counts. spotter always tries to apply the total count on top of the grouping, and I can't figure out what how to add a total count in this query. in SQL is quite simple, for example ``WITH data AS ( SELECT COUNT(*) AS cnt FROM env0-data-warehouse.env0_dbt_dev.entities_environments` ) SELECT ...

Mark Gorman - Hi I have a question about ismand...

Hi I have a question about is_mandatory_token_filter...

Suresh - ELMO - Hi, I am getting "Invalid YAML/...

Hi, I am getting "Invalid YAML/JSON syntax in file." when creating a model with join. I believe there needs to single quote around 'on' key and value of joins attribute.

Suvash - Hi team, when we invoke the SDK init()...

Hi team, when we invoke the SDK init(), it creates a session in the ThoughtSpot cluster right?. One way to invalidate the session is to invoke the logout function. If not for logout, how long does the session last? Is there a way to control the session expiry time? Is there any documents around this? I couldn't find it in developer docs.

Tim - Hello 👋 we embed liveboards with the sdk...

Hello 👋 we embed liveboards with the sdk and currently have to manually enable CORS settings for every preview app and its kind of a pain. Our preview app domains are in the format pr-${number}.preview.mycompany.com . I was wondering if there's a way to configure our CORS with a wildcard for the number. Based on these docs it seems like no, but maybe yall know a workaround? If so that would be amazing

Stellnox - Hi everyone! I'm working right now o...

Hi everyone! I'm working right now on embedding Spotter in my project, but I've faced the issue where spotter wont show up, also I was not able to find actual spotter functionality on the instance that I'm using for development, does it mean that I have to enabled it somehow?

TomerLand - I tried to commit new answer from T...

I tried to commit new answer from ThoughTpot the our reository. till yesterday it was working well, but now I'm getting ```{ "error": { "message": { "debug": {...

Oldouz - Hi everyone, I need to see which liveb...

Hi everyone, I need to see which liveboards and answer boards have been shared, and what users and user groups they have been shared with. I have used the v1/metadata/list to capture liveboards and answers . There appears to be a "isSharedViaConnection" key in the output but all the values are fals. This is for 2.5K pinboard answer books. So it appears they are all false - which is odd. I am not seeing how to get this information out of the t/2.0/security/metadata/share endpoint. Does anyone hav...
Solution:
If you want to try the other way around, i.e., see which user/group has access to which object, you can try POST /api/rest/2.0/security/principals/fetch-permissions