# PSCustomObject Nested Values

**URL:** <https://forums.powershell.org/t/pscustomobject-nested-values/11372>\
**Category:** PowerShell Help\
**Created:** [September 25, 2018, 6:33am UTC](https://forums.powershell.org/t/pscustomobject-nested-values/11372 "2018-09-25T06:33:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![incognitotom](https://avatars.discourse-cdn.com/v4/letter/i/e495f1/32.png) [@incognitotom](https://forums.powershell.org/u/incognitotom)\
**Post date:** [September 25, 2018, 6:33am UTC](https://forums.powershell.org/t/pscustomobject-nested-values/11372/1 "2018-09-25T06:33:29Z")

</div>

Hi,

I have a PSCustomOject which has a number of nested values. How do extract the nested values?

&nbsp;

```
ID:12345678910
Name:@{name=Test;[email=test@email.com](mailto:email=test@email.com);date=01/01/01}
Comment:abcdefg
Info:@{ID=ab123xc;[url=http.com](http://url=http.com)}
```

So it would be something like Name.Name, Name.Email ,Comment etc.

Thanks

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [September 27, 2018, 8:59am UTC](https://forums.powershell.org/t/pscustomobject-nested-values/11372/2 "2018-09-27T08:59:05Z")

</div>

Ah, well, it depends a bit on whether those are actual sub-objects or hash tables. If they’re sub-objects, which is a better pattern, then yeah - Name.name, Name.Email, etc.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:34pm UTC](https://forums.powershell.org/t/pscustomobject-nested-values/11372/3 "2024-05-16T20:34:19Z")

</div>


