Arrays of data
Sometimes when you click on the copy button for a data item it will look like this i.e. contain [0] within it.
If there is a [0] inside a data item, it means it is actually part of a collection and cannot be used by itself. I.e. in the above example the field we are trying to show is transaction amount for payments.
The reason why this won’t work is because there could be hundreds of payments. I.e. the copy/paste function is useful where it is a set thing but for collections we can’t use this.
There is a slight exception to the rule in that it IS possible to show the first / last item in a list. I.e. let’s say there were 100 payments but we were only interested in the most recent one. We can do this:
${TransactionDetail.Payments.Last().TransAmount}
Or we can do this if the order is the reverse of what is expected:
${TransactionDetail.Payments.First().TransAmount}
Last updated
Was this helpful?