Tips & Tricks

How to Backup PWA Flows to a Podio App

App Builder & Automation Expert

Stay Updated with ProcFu!

Subscribe to our newsletter for the latest tips, updates, and automation insights.

Subscribe Now

Backing up your PWA (GlobiFlow) flows regularly is a smart way to prevent data loss and keep version history. In this guide, you'll learn how to automatically back up all your flows into a Podio app using a custom ProcFu script.

What You Need

  • A Podio app created specifically for storing flow backups
  • Your app’s ID
  • A text field in your app for storing the flow ID (used for checking duplicates)
  • Access to the ProcFu script editor and scheduler

ProcFu Functions Used

Step 1: Create a Podio App

Create a Podio app with the following fields:

  • flow-id (Text)
  • app-id (Text)
  • flow-name (Text)
  • description (Text)
  • trigger-type (Text)
  • version (Text)
  • flow-data (Text / Category / Long text depending on preference)

Note the App ID and the field ID of the flow-id field — you’ll use them in the script.

Step 2: The Script

Here is the ProcFu script you’ll use to back up your flows:


$app_id = "29860573";
$flow_id_field_id = "266749145";

$flow_list = pwa_flows_list();
foreach ($flow_list as $flow) {
	$flow_id = $flow["pkFlows"];	
    $flow = pwa_flow_get($flow_id);
    $fields = [
        "flow-id" => json_encode($flow_id),
        "app-id" => json_encode($flow["flow"]["podioAppId"]),
        "flow-name" => json_encode($flow["flow"]["flowName"]),
        "description" => json_encode($flow["flow"]["description"]),
        "trigger-type" => json_encode($flow["flow"]["triggerType"]),
        "version" => json_encode($flow["flow"]["version"]),
        "flow-data" => json_encode($flow)
    ];
    $exists = podio_app_search($app_id,$flow_id_field_id,$flow_id,"E",1,1);
    if($exists[0]){
        podio_item_fields_update($exists[0]["item_id"],json_encode($fields),0,0);
    } else {
        podio_item_create($app_id,json_encode($fields),0,0);
    }           
}
account_logger_log("Flow Backup Complete");

Step 3: Automate with ProcFu Scheduler

To keep your backups up to date, schedule the script to run automatically:

  1. Go to ProcFu Account
  2. Navigate to Scheduled Tasks
  3. Click Add Job
  4. Set the following:
  • Run on: Every Day
  • Time: 00:00
  • Name: PWA Flows Backup Scheduler
  • Type: Run ProcScript Script
  • Script Name: backup_flows (or whatever you named the script)

Click Save to activate the daily backup job.

You're Done!

Your flows will now be backed up daily into your Podio app - safely and automatically.

Love using ProcFu Guide?

Share your testimonial and let us know how ProcFu has helped you.

Share Your Testimonial

Built with ❤️ by Thaha for the Community