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.
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
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
Why not just use the App workflows? I think there should be a page load globally for the whole app
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