CRM Software Solutions Company
Relates an existing project with an existing CRM object. See the documentation
Create a new document in a collection of your choice. See the docs here
Creates a new person or updates an existing one based on email address. See the documentation
Creates a new project or updates an existing one based on the project name. See the documentation
Copper CRM's API unlocks the potential to streamline customer relationship management through automation and integration. On Pipedream, this means you can leverage event-driven workflows to sync contacts, manage deals, and automate tasks. Think of it as connecting Copper's insights directly to other apps or databases, triggering events in real-time based on CRM updates or capturing fresh leads instantaneously.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
copper: {
type: "app",
app: "copper",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.prosperworks.com/developer_api/v1/account`,
headers: {
"X-PW-AccessToken": `${this.copper.$auth.api_key}`,
"X-PW-Application": `developer_api`,
"X-PW-UserEmail": `${this.copper.$auth.email}`,
"Content-Type": `application/json`,
},
})
},
})
The MongoDB API provides powerful capabilities to interact with a MongoDB database, allowing you to perform CRUD (Create, Read, Update, Delete) operations, manage databases, and execute sophisticated queries. With Pipedream, you can harness these abilities to automate tasks, sync data across various apps, and react to events in real-time. It’s a combo that’s particularly potent for managing data workflows, syncing application states, or triggering actions based on changes to your data.
import mongodb from 'mongodb'
export default defineComponent({
props: {
mongodb: {
type: "app",
app: "mongodb",
},
collection: {
type: "string"
},
filter: {
type: "object"
}
},
async run({steps, $}) {
const MongoClient = mongodb.MongoClient
const {
database,
hostname,
username,
password,
} = this.mongodb.$auth
const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, {
useNewUrlParser: true,
useUnifiedTopology: true
})
const db = client.db(database)
const results = await db.collection(this.collection).find(this.filter).toArray();
$.export('results', results);
await client.close()
},
})