How do you get the attribute name of a structure?
"MyItem" structure record has 1 attributes "Description"
MyAction has 1 input parameter "Field" and 1 output parameter "ReturnFieldName"
MyAction, input parameter is assigned attribute "MyItem.Description" and returns the text "Description" via "MyAction.ReturnFieldName" output parameter.
But how do you do this? Is there an system action to get the name of a structure attribute? Is it even possible to do this via an extension? (I don't want to type every attribute name manually)
You can get the attribute names of an entity by adding "Entity" entity as a dependency to your application. You can find it in System Espace. Use it to your function to get the specific attribute name or list. Hope this will suffice.
It does not quite solve the problem.
But I don't think there is a solution to the problem.
I would like outsystems to detect the input parameter, input a structure attribute, then be able to get the name of the attribute and use it within an action.
Right now I have to manually type the attribute name.