We are using the API to get the category of the tool, however, we are only getting List of Nodes. For getting Tool Category, we are using below highlighted property, but it is giving Technical class name like DbFileInput, DbFileOutput, etc.. If you open the same workflow file from UI, It shows Proper user friendly name in tool tip.
How can we get user friendly name from API?
Sub GetInformationofNodes(ByVal strFile As String)
Dim strEngineEntryPoint As String
Dim objDoc As AlteryxDocument.Document
objDoc = New AlteryxDocument.Document(strFile)
For Each objNode As NodeBase In objDoc.GetAllNodes
If TypeOf objNode Is AlteryxDocument.ToolNode Then
Dim objToolNode As AlteryxDocument.ToolNode = DirectCast(objNode, AlteryxDocument.ToolNode)
strEngineEntryPoint = objToolNode.EngineEntryPoint
End If
Next
End Sub
Any help is really appreciated.
hey @CIMCONSoftware
Its a bit of a pain - but if you are doing this programmatically, you might want to create a lookup table of the tools - and then use a find/replace tool to change the name of the tool.
For instance - a lookup table of:
Tool Name | Friendly Tool Name |
DbFileInput | Input Data |
DbFileOutput | Output Data |
Hope this helps at all,
TheOC
Thank you for your response @TheOC. It does clarify that the API won't give the category/Friendly Tool Name, correct me if I'm wrong.
Do you know if there is a ready list of such items that lists out all the Tool Names and their Friendly Tool Names, somewhere on Alteryx's community docs that can be used? Building this list manually won't really be a practical option as there are a lot of tools that are available for use.
Also, how can we submit this as a suggestion to Alteryx's development team so that they can add this attribute as part of the result of the API call?