Visually track, manage and automate your business processes.
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
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}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})