# GetSources Result

**URL:** https://discourse.paraview.org/t/getsources-result/2583
**Category:** ParaView Support
**Tags:** python
**Created:** [September 18, 2019, 7:24pm UTC](https://discourse.paraview.org/t/getsources-result/2583 "2019-09-18T19:24:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [September 18, 2019, 7:24pm UTC](https://discourse.paraview.org/t/getsources-result/2583/1 "2019-09-18T19:24:55Z")

</div>

So GetSources() returns a dictionary of (name, id) object pairs.

I’m wondering what these ids are a reference to.  
From my experience they seem to be incremental in relation to the order of operation (perhaps even in relation to time of creation?).  
Can I count on this?

Context:  
I want to LoadState() then get a handle to the last object in the pipeline. Assuming I can’t use FindSource() because I don’t know the name of the object, I’m thinking I can compare those ids.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 19, 2019, 1:25am UTC](https://discourse.paraview.org/t/getsources-result/2583/2 "2019-09-19T01:25:35Z")

</div>

There are the globalIds, they are incremental and you can rely on this behavior to get the last created source.

However, I’m not sure that the last created source in the context of LoadState is always the same.
