with Forms On Fire and Filter?
The Forms On Fire API allows you to automate interactions with your mobile forms. Using it with Pipedream, you can trigger workflows based on form submissions, update or retrieve data from forms, and automate interactions with other apps. It's useful for extending the capabilities of your forms, integrating with third-party services, and streamlining data processes without manual intervention.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
forms_on_fire: {
type: "app",
app: "forms_on_fire",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://secure.formsonfire.com/api/v2/user`,
params: {
format: `json`,
CompanyId: `${this.forms_on_fire.$auth.company_id}`,
Integrationkey: `${this.forms_on_fire.$auth.integration_key}`,
Email: `[replace_with_user_email]`,
},
})
},
})
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.")
}
},
})