# Capture Process ID

**URL:** <https://community.automationedge.com/t/capture-process-id/6461>\
**Category:** Process Studio\
**Tags:** rpa\
**Created:** [January 21, 2023, 7:39pm UTC](https://community.automationedge.com/t/capture-process-id/6461 "2023-01-21T19:39:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wllmdjngh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/wllmdjngh/32/952_2.png) [@wllmdjngh](https://community.automationedge.com/u/wllmdjngh)\
**Post date:** [January 21, 2023, 7:39pm UTC](https://community.automationedge.com/t/capture-process-id/6461/1 "2023-01-21T19:39:43Z")

</div>

Hi. I would like to check if my WF is being tested in PS or being executed by an agent.  
Would like to avoid executing cost generating steps if process being tested.  
Thanks

---

<div class="post-metadata">

**Author:** ![Anand.Tambey](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/anand.tambey/32/1167_2.png) [@Anand.Tambey](https://community.automationedge.com/u/Anand.Tambey)\
**Post date:** [January 23, 2023, 3:41pm UTC](https://community.automationedge.com/t/capture-process-id/6461/2 "2023-01-23T15:41:40Z")

</div>

@wllmdjngh It’s really good way to avoid unnecessary costs ensuring production level WF and already executing, if I am able to understand correctly.

@hemanshu.rukadikar is there any way this could be achieved?

---

<div class="post-metadata">

**Author:** ![wllmdjngh](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/wllmdjngh/32/952_2.png) [@wllmdjngh](https://community.automationedge.com/u/wllmdjngh)\
**Post date:** [January 23, 2023, 9:37pm UTC](https://community.automationedge.com/t/capture-process-id/6461/3 "2023-01-23T21:37:33Z")

</div>

The point is, and maybe the message was sent without any further explanation,  
Using RestAPI to external systems that generate costs for each transaction, when doing Dev/QA, not to use these steps and instead have a steps that simulates the API Call.  
For that there is a need to know if the WF is being executed through PS or in production. If by PS, bypass the API but in production, execute the API.  
We are working on some WF, for each execution through PS, it calls the API generating unnecessary cost.  
Si if there is a way to know the process ID when executing through Agent but not available through PS, that would be great.  
Hope this explains a little more my point.  
Regards
