Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GF search all flows for given string
- input "string to search for" search_val
- print "searching for " + search_val
- flows = gf_get_flows_list()
- results = 0
- // iterate through all flows
- foreach ( flows as flow ) {
- flow_id = flow.pkFlows
- raw = gf_get_flow(flow_id, 0)
- json = json_encode(raw)
- // if we find a hit
- if ( stristr(json, search_val) ) {
- results = results + 1
- line = "Flow " + flow_id + ' (<a'+' href="https://workflow-automation.podio.com/flows.php?node=' + flow_id + '" target="_blank">link</a>)'
- print line
- }
- }
- print "DONE. Found " + results + " hits"
Add Comment
Please, Sign In to add comment