# \[Solved\] How can I access Application/Workflow name from within a workflow?

**URL:** https://forums.losant.com/t/solved-how-can-i-access-application-workflow-name-from-within-a-workflow/218
**Category:** Help
**Created:** [July 28, 2016, 8:35am UTC](https://forums.losant.com/t/solved-how-can-i-access-application-workflow-name-from-within-a-workflow/218 "2016-07-28T08:35:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Tim\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Hoffman](https://forums.losant.com/u/Tim_Hoffman)
#### Post date: [July 28, 2016, 8:35am UTC](https://forums.losant.com/t/solved-how-can-i-access-application-workflow-name-from-within-a-workflow/218/1 "2016-07-28T08:35:57Z")

</div>

Hi

I am seeing how far I can make some workflows generic.  
I can’t see any way at the moment to get the Workflow name or the application name from within a workflow.

These values could be used within Email templates for instance.

I can set these at the workflow level as globals, however being able to retrieve this values from the environment means less likely to make mistakes when importing workflows into new applications.

Thanks

Tim

---

<div class="post-metadata">

### Author: ![Travis\_Geis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/travis_geis/32/193_2.png) [@Travis\_Geis](https://forums.losant.com/u/Travis_Geis)
#### Post date: [August 1, 2016, 9:03pm UTC](https://forums.losant.com/t/solved-how-can-i-access-application-workflow-name-from-within-a-workflow/218/2 "2016-08-01T21:03:19Z")

</div>

There might be a more direct way, but you can use the `applicationId` and `flowId` values from the payload to find the application and workflow names using an HTTP request node. The relevant REST API endpoints are [Application](https://docs.losant.com/rest-api/application/) and [Workflow](https://docs.losant.com/rest-api/flow/). The would add a little complexity to the workflow, but it would make it less brittle than using globals for the names. If you want more detail let me know.

---

<div class="post-metadata">

### Author: ![Tim\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Hoffman](https://forums.losant.com/u/Tim_Hoffman)
#### Post date: [August 2, 2016, 1:34am UTC](https://forums.losant.com/t/solved-how-can-i-access-application-workflow-name-from-within-a-workflow/218/3 "2016-08-02T01:34:49Z")

</div>

Hi Travis

Yeah I figured using the REST API was the only way at the moment. It would seem a little expensive but at as you say far less brittle.

Cheers

T

---

<div class="post-metadata">

### Author: ![Michael\_Kuehl](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_kuehl/32/99_2.png) [@Michael\_Kuehl](https://forums.losant.com/u/Michael_Kuehl)
#### Post date: [September 7, 2016, 8:31pm UTC](https://forums.losant.com/t/solved-how-can-i-access-application-workflow-name-from-within-a-workflow/218/4 "2016-09-07T20:31:20Z")

</div>

You no longer have to use the REST API to do this, in our most recent release we have added the fields `applicationName` and `flowName` on the workflow payload to make working with that information easier. Hope that helps!

---

<div class="post-metadata">

### Author: ![Tim\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Hoffman](https://forums.losant.com/u/Tim_Hoffman)
#### Post date: [September 7, 2016, 11:37pm UTC](https://forums.losant.com/t/solved-how-can-i-access-application-workflow-name-from-within-a-workflow/218/5 "2016-09-07T23:37:47Z")

</div>

Awesome!

Thanks for the ongoing improvements.
