# Get result of another workflow from an activity in using typeScript

**URL:** <https://community.temporal.io/t/get-result-of-another-workflow-from-an-activity-in-using-typescript/9990>\
**Category:** Community Support\
**Tags:** typescript-sdk\
**Created:** [November 2, 2023, 6:49am UTC](https://community.temporal.io/t/get-result-of-another-workflow-from-an-activity-in-using-typescript/9990 "2023-11-02T06:49:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [November 3, 2023, 3:29pm UTC](https://community.temporal.io/t/get-result-of-another-workflow-from-an-activity-in-using-typescript/9990/3 "2023-11-03T15:29:59Z")

</div>

Hello @kishore_kumar

You can use a workflow client inside your activity (in workflow A) to query result of workflow B

So, when you register the activity in the worker you can inject an instance of the workflow client, similar on how it is done in this example with dbClient

> <https://github.com/temporalio/samples-typescript/blob/98853010a11fc3c8a3dda49c7f0cdaa0e134fb32/activities-dependency-injection/src/worker.ts#L17C17-L17C33>

and within your activity get the workflow result

```auto
const handle = this.client.workflow.getHandle(workflowId);
const resultPromise = handle.result();

```

Note that this is a blocking call, take a look to this post mentioning different approaches depending on how often you want to poll from your activity [What is the best practice for a polling activity? - #2 by maxim](https://community.temporal.io/t/what-is-the-best-practice-for-a-polling-activity/328/2)

Another approach could be sending a [signal](https://docs.temporal.io/dev-guide/typescript/features#send-signal-from-workflow) (or [signalWithStart](https://docs.temporal.io/dev-guide/typescript/features#signal-with-start)) from workflowB to workflowA before workflowB completes.

If you want to share your use-case we can help with the design,

Antonio

---

_[View the full topic](https://community.temporal.io/t/get-result-of-another-workflow-from-an-activity-in-using-typescript/9990)._
