# Using system.project.getProjectName() in an alarm pipeline script

**URL:** <https://forum.inductiveautomation.com/t/using-system-project-getprojectname-in-an-alarm-pipeline-script/43191>\
**Category:** Ignition\
**Created:** [February 9, 2021, 5:13pm UTC](https://forum.inductiveautomation.com/t/using-system-project-getprojectname-in-an-alarm-pipeline-script/43191 "2021-02-09T17:13:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin.casleton](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@justin.casleton](https://forum.inductiveautomation.com/u/justin.casleton)\
**Post date:** [February 9, 2021, 5:13pm UTC](https://forum.inductiveautomation.com/t/using-system-project-getprojectname-in-an-alarm-pipeline-script/43191/1 "2021-02-09T17:13:51Z")

</div>

Running Version 8.1.1  
So I have a scripting block in an alarm pipeline and I was hoping to get the name of the project dynamically to use in the subject line for the email notification later in the pipeline. I found the the system.project.getProjectName() function and I though it would be the correct fit. But when the script is executed I do not get the name of the project that the pipeline is in. Instead I get the name of the Gateway Scripting Project. I am confused why the script that is running in the alarm pipeline is returning the name of the Gateway scripting project instead of the name of the project that the pipeline belongs to

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 9, 2021, 5:17pm UTC](https://forum.inductiveautomation.com/t/using-system-project-getprojectname-in-an-alarm-pipeline-script/43191/2 "2021-02-09T17:17:36Z")

</div>

I think this might be a bug. The script block may be executing scripts in the context of the gateway scripting project instead of the project the pipeline is in.

---

<div class="post-metadata">

**Author:** ![justin.casleton](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@justin.casleton](https://forum.inductiveautomation.com/u/justin.casleton)\
**Post date:** [February 9, 2021, 5:21pm UTC](https://forum.inductiveautomation.com/t/using-system-project-getprojectname-in-an-alarm-pipeline-script/43191/3 "2021-02-09T17:21:12Z")

</div>

Not sure if it is relevant but the project that the pipeline is in is inherited from a project with the same name as the gateway scripting project.

That being said the pipeline itself is not inherited
