with Cflow and ServiceNow?
The Cflow API lets you automate and integrate your workflow management, enhancing your business processes with custom automations. With Pipedream, you can harness this API to create, update, and track workflows without manual interference. This enables you to connect Cflow with various other apps and services, streamlining your processes from initiation to completion.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cflow: {
type: "app",
app: "cflow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://us.cflowapps.com/integromat/api/cflow/getworkflows`,
headers: {
"Content-Type": `application/json`,
"apikey": `${this.cflow.$auth.apikey}`,
"userkey": `${this.cflow.$auth.userkey}`,
"username": `${this.cflow.$auth.username}`,
},
})
},
})
The ServiceNow API lets developers access and manipulate records, manage workflows, and integrate with other services on its IT service management platform. These capabilities support automating tasks, syncing data across platforms, and boosting operational efficiencies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicenow: {
type: "app",
app: "servicenow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.servicenow.$auth.instance_name}.service-now.com/api/now/table/incident`,
headers: {
Authorization: `Bearer ${this.servicenow.$auth.oauth_access_token}`,
},
})
},
})