with Teamgate and Filter?
Emit new event when a activity status is changed. See docs here
Emit new event when a deal stage is changed. See docs here
Teamgate's API provides the ability to manage a sales pipeline, customer data, and interactions within the Teamgate CRM system. By leveraging the Teamgate API on Pipedream, you can automate various aspects of the sales process, synchronize customer information across platforms, and generate insights from sales data. With Pipedream's serverless integration capabilities, connecting Teamgate to other services becomes a streamlined process, enabling users to create custom workflows that trigger actions, process data, and manage tasks without manual intervention.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
teamgate: {
type: "app",
app: "teamgate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.teamgate.com/v4/users`,
headers: {
"X-App-Key": `${this.teamgate.$auth.app_key}`,
"X-Auth-Token": `${this.teamgate.$auth.auth_token}`,
},
})
},
})
The Filter API in Pipedream allows for real-time data processing within workflows. It's designed to evaluate data against predefined conditions, enabling workflows to branch or perform specific actions based on those conditions. This API is instrumental in creating efficient, targeted automations that respond dynamically to diverse datasets. Using the Filter API, you can refine streams of data, ensuring that subsequent steps in your Pipedream workflow only execute when the data meets your specified criteria. This cuts down on unnecessary processing and facilitates the creation of more intelligent, context-aware systems.
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})