with Rex and Data Stores?
Add or update a single record in your Pipedream Data Store
Add or update multiple records to your Pipedream Data Store
The Rex API allows for automation and integration of real estate CRM functionalities within the Pipedream platform. By leveraging Rex, you can streamline operations, synchronize data across various platforms, and trigger actions within the Rex ecosystem based on events from other apps or services. Whether you're managing listings, contacts, or marketing efforts, the Rex API on Pipedream can be a powerful tool to enhance productivity and customer engagement in real estate businesses.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rex: {
type: "app",
app: "rex",
}
},
async run({steps, $}) {
return await axios($, {
method: "POST",
url: `https://api.rexsoftware.com/v1/rex/user-profile/get-all-accounts`,
headers: {
Authorization: `Bearer ${this.rex.$auth.access_token}`,
"Content-Type": `application/json`,
},
})
},
})
Data Stores are a key-value store that allow you to persist state and share data across workflows. You can perform CRUD operations, enabling dynamic data management within your serverless architecture. Use it to save results from API calls, user inputs, or interim data; then read, update, or enrich this data in subsequent steps or workflows. Data Stores simplify stateful logic and cross-workflow communication, making them ideal for tracking process statuses, aggregating metrics, or serving as a simple configuration store.
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})