---
url: /excel-addin/childget.md
description: >-
  Retrive the child element of a provided parent element in the provided
  dimension and hiearchy at the given index.
---

# ChildGet

Retrive the child element of a provided parent element in the provided dimension and hiearchy at the given index. Indexing is zero based.

```js
ChildGet(applicationName, dimension, hierarchy, elementName, index)
```

#### Parameters

* `applicationName` - The name of the application to work in.
* `dimension` - The dimension in which find the element.
* `hierarchy` -  The hierarchy in which find the element.
* `elementName` -  The identifier of the element for which we will return a child element.
* `index` - The index of the child element to be returned. (zero based)

#### Example

```js
ChildGet("Performance Management", "Account", "Profit and Loss", "Revenue", 0)

```

This would return the first child element for the "Revenue" element in the "Profit and Loss" hierarchy.
