# How to manually execute page workflows?

**URL:** <https://community.weweb.io/t/how-to-manually-execute-page-workflows/18166>\
**Category:** Ask us anything\
**Created:** [May 7, 2025, 4:15am UTC](https://community.weweb.io/t/how-to-manually-execute-page-workflows/18166 "2025-05-07T04:15:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micah](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/micah/32/9102_2.png) [@Micah](https://community.weweb.io/u/Micah)\
**Post date:** [May 7, 2025, 4:15am UTC](https://community.weweb.io/t/how-to-manually-execute-page-workflows/18166/1 "2025-05-07T04:15:43Z")

</div>

I’m curious what function I need in order to execute the on page load workflows? The standard wwLib.wwWorkflow.executeGlobal does not seem to accept the workflow id.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [May 7, 2025, 5:17am UTC](https://community.weweb.io/t/how-to-manually-execute-page-workflows/18166/2 "2025-05-07T05:17:05Z")

</div>

You can’t, they execute on page load. I’d probably make a global workflow and invoke it on page load via Execute Workflow. Then you can also execute it from anywhere

---

<div class="post-metadata">

**Author:** ![Micah](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/micah/32/9102_2.png) [@Micah](https://community.weweb.io/u/Micah)\
**Post date:** [May 7, 2025, 3:01pm UTC](https://community.weweb.io/t/how-to-manually-execute-page-workflows/18166/3 "2025-05-07T15:01:59Z")

</div>

I’m convinced there is a special function that will trigger them somewhere within wwLib, but I cannot find it haha.

My goal is to have a workflow that I can run that will dynamically rerun the correct on page load workflows without my having to manually map out all the workflows on all of the pages.

I’ve pretty much already solved that by `wwLib.wwWebsiteData.getCurrentPage().workflows`. I can access the node data and run any global workflows within dynamically, but I there must be some hidden function that runs on page load workflows 👀

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [May 7, 2025, 4:23pm UTC](https://community.weweb.io/t/how-to-manually-execute-page-workflows/18166/4 "2025-05-07T16:23:58Z")

</div>

Why not just use the App workflows? I think there should be a page load globally for the whole app

---

<div class="post-metadata">

**Author:** ![Micah](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/micah/32/9102_2.png) [@Micah](https://community.weweb.io/u/Micah)\
**Post date:** [May 7, 2025, 4:58pm UTC](https://community.weweb.io/t/how-to-manually-execute-page-workflows/18166/5 "2025-05-07T16:58:11Z")

</div>

I have a scenario in my app where the user can switch locations. Right now my solution is to navigate to a blank page, then go back to the original page really fast to force trigger the on page load workflows. It just feels a bit clunky currently

I’m not sure the app workflows would help any more than the existing solution
