display field from query

In my "Request " CDT  , i have a field named "branch" of type number. 

I am trying to display the branch ID  on the interface , from the query "GetRequestData". 

value: rule!GetRequestData(ri!documentID).branch,

ri!documentID holds the ID of the request. 

when I test the query it returns the data correctly, but on the interface it doesn't show.

when i debug the process model it shows ((Cannot index property 'branch' of type String into type List of Variant)) 

i don't quite understand the error message.

how can i display it correctly ?  

 

  Discussion posts and replies are publicly visible