> For the complete documentation index, see [llms.txt](https://ieg4.gitbook.io/onevu-digital-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ieg4.gitbook.io/onevu-digital-platform/onevu-control/data-silos/dynamic-content/working-with-back-office-data/arrays-of-data.md).

# 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.

```
${TransactionDetail.Payments[0].TransAmount}
```

&#x20;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.

{% hint style="info" %}
EXCEPTION TO THE ABOVE RULE
{% endhint %}

&#x20;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:

&#x20;${TransactionDetail.Payment&#x73;**.Last()**.TransAmount}

&#x20;Or we can do this if the order is the reverse of what is expected:

&#x20;${TransactionDetail.Payment&#x73;**.First()**.TransAmount}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ieg4.gitbook.io/onevu-digital-platform/onevu-control/data-silos/dynamic-content/working-with-back-office-data/arrays-of-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
