with ProcessPlan and Go?
Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.
ProcessPlan is a process management tool with an API that lets you automate and track workflows. On Pipedream, you can use this API to create intricate automations, which can involve triggering workflows in ProcessPlan, updating tasks, pulling data from process templates, or integrating with other services to streamline operations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
processplan: {
type: "app",
app: "processplan",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.processplan.$auth.regional_subdomain}.processplan.com/api/v4/user/me/personal_instance_task/list/pending/count`,
headers: {
"tkn_id": `${this.processplan.$auth.api_token}`,
},
})
},
})
You can execute custom Go scripts on-demand or in response to various triggers and integrate with thousands of apps supported by Pipedream. Writing with Go on Pipedream enables backend operations like data processing, automation, or invoking other APIs, all within the Pipedream ecosystem. By leveraging Go's performance and efficiency, you can design powerful and fast workflows to streamline complex tasks.
package main
import (
"fmt"
pd "github.com/PipedreamHQ/pipedream-go"
)
func main() {
// Access previous step data using pd.Steps
fmt.Println(pd.Steps)
// Export data using pd.Export
data := make(map[string]interface{})
data["name"] = "Luke"
pd.Export("data", data)
}