# Getting list of activities for current workflow from workflow execution code

**URL:** https://community.temporal.io/t/getting-list-of-activities-for-current-workflow-from-workflow-execution-code/1559
**Category:** Community Support
**Created:** [February 22, 2021, 12:24am UTC](https://community.temporal.io/t/getting-list-of-activities-for-current-workflow-from-workflow-execution-code/1559 "2021-02-22T00:24:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sbansal](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sbansal](https://community.temporal.io/u/sbansal)
#### Post date: [February 22, 2021, 12:24am UTC](https://community.temporal.io/t/getting-list-of-activities-for-current-workflow-from-workflow-execution-code/1559/1 "2021-02-22T00:24:06Z")

</div>

Hi,

During my workflow, I want to get a list of all activities that were completed as part of that workflow (along with result values of those activities). Is it possible to get this list?

Thanks in advance for help!

Sachin

---

<div class="post-metadata">

### Author: ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)
#### Post date: [February 22, 2021, 7:30pm UTC](https://community.temporal.io/t/getting-list-of-activities-for-current-workflow-from-workflow-execution-code/1559/2 "2021-02-22T19:30:52Z")

</div>

The simplest is to store the activity and results in a variable inside the workflow. Then use query feature to return the results.

---

<div class="post-metadata">

### Author: ![sbansal](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sbansal](https://community.temporal.io/u/sbansal)
#### Post date: [March 6, 2021, 8:27pm UTC](https://community.temporal.io/t/getting-list-of-activities-for-current-workflow-from-workflow-execution-code/1559/3 "2021-03-06T20:27:35Z")

</div>

Thanks! I will try that.
