with Microsoft SQL Server and Trengo?
Triggers when a new column is added to a table. See the documentation
Emit new events when an inbound message received. See the docs here
Triggers when a new row is added or an existing row is updated. See the documentation
Emit new events when a internal note added. See the docs here
Emit new events when an outbound message sent. See the docs here
Executes a SQL query and returns the results. See the documentation
Creates a contact. If a contact with given identifier already exists, returns it. See the docs
With the Microsoft SQL Server API on Pipedream, you can automate your database operations and create powerful integrations. This API allows you to execute queries, manage databases, and trigger actions based on data changes. Implementing workflows that react to database events, manipulate data, or synchronize SQL Server data with other services, becomes effortless with Pipedream's serverless platform.
import sql from "mssql"
export default defineComponent({
props: {
microsoft_sql_server: {
type: "app",
app: "microsoft_sql_server",
}
},
async run({steps, $}) {
const { host, username, password, port, database, encrypt,trustServerCertificate } = this.microsoft_sql_server.$auth
const conn_str = `Server=${host},${port};Database=${database};User Id=${username};Password=${password};Encrypt=${encrypt};TrustServerCertificate=${trustServerCertificate}`;
await sql.connect(conn_str);
return await sql.query`SELECT GETDATE()`
},
})
The Trengo API provides programmatic access to Trengo's multi-channel communication platform, allowing for the streamlining of customer interactions across various channels such as email, SMS, social media, and chat. By leveraging the Trengo API on Pipedream, you can automate customer support workflows, sync communication data with CRM systems, and trigger alerts or actions based on specific customer queries or events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
trengo: {
type: "app",
app: "trengo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.trengo.eu/api/v2/users`,
headers: {
Authorization: `Bearer ${this.trengo.$auth.access_token}`,
},
})
},
})