# One Line Code To Get A List Of Items From All The Fabric/Premium Workspaces

What the title says, thanks to the latest version (v0.5) of [Semantic Link](https://learn.microsoft.com/en-us/fabric/data-science/semantic-link-overview?wt.mc_id=MVP_335074)

```python
!pip install --upgrade semantic-link --q #upgrade to semantic-link v0.5

import sempy.fabric as fabric
import pandas as pd 

df = pd.concat([fabric.list_items(workspace=ws) for ws in fabric.list_workspaces().query('`Is On Dedicated Capacity` == True').Id], ignore_index=True)
df
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1705502685880/8c249494-de95-49bf-ad88-e3b9a20a0e49.png align="center")

<div data-node-type="callout">
<div data-node-type="callout-emoji">💡</div>
<div data-node-type="callout-text">If you have a large tenant with thousands of workspaces and items, this will be slow. In that case optimize the code to execute in parallel using <code>ThreadPoolExecutor</code></div>
</div>
