cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

GetTokenAnnoted Service

GetTokenAnnoted Service

1. What version of Thingworx are you currently running?
Thingworx Platform 9.1


2. Describe the problem you are trying to solve. Please include detailed documentation such as screenshots, images or video.

We have the default  Localization table where we have finitely large set of localization tokens. The customer requirement is, to export the localization tokens for some machines to  exported to a csv file and have translated localization values inserted back to Thingworx. The challenge we face is that we need to export  tokenname, tokenvalue, context and usage in the csv file. The current method we have employed is 

1. Fetch entire localization table using GetTokensAnnotated() service 

2. Query the infotable with the token name to get the usage, context and value data

This process consumes a lot of resource and runtime for the service since the localization table is getting bigger day by day.

What I would propose is a service GetTokenAnnoted  which  can fetch all annoted information for a single token name.

@olivierlp  Please consider this idea with priority.


3. What business value would your suggestion represent for your organization?


3 Comments
olivierlp
Community Manager
Status changed to: Acknowledged

Hello @AdarshBNair ,
Thank you for your idea and the information provided. On the prioritization, the product team will be responsible for this. You may want to add a few comments about the business value that your idea would represent. I hope your fellow users will vote this up as well! 

AdarshBNair
5-Regular Member

3. What business value would your suggestion represent for your organization?

This suggested service would bring the TokenName, TokenValue, context and usage which are all information required for our business requirement. The method used by my organization creates localization is by  exporting the localization tokens , tokenvalue, context and usage in a csv file and use external agencies to translate the tokens appropriately. In such a scenarios usage and context are very helpful for generating the correct localization. The current workaround we have implemented is taking a lot of resource since the  GetTokensAnnotated() service brings all localizations tokens which are not necessary for the process. I think it would make a lot helpful to call 'GetTokenAnnotated()' service with parameter as tokenName.

olivierlp
Community Manager

Thanks, @AdarshBNair, for these details.