Learn how to integrate %%APP_NAME%% with your external systems using formula fields
Yes! 1Flow can integrate with your external systems—including ERP, CRM, accounting software, and databases—through Formula Fields using TxScript. This enables real-time data synchronization and validation during document extraction.
Formula fields use HTTP requests to communicate with external systems. When documents are processed, you can:
Integration is done using the tx.http.request() method in formula fields. This provides secure, rate-limited HTTP calls to your external systems with built-in error handling and authentication support.
// Lookup product information from ERP system
const sku = tx.getCurrentLineItem()?.sku;
if (sku) {
const response = await tx.http.request({
url: "https://your-erp-system.com/api/products",
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: { sku: sku }
});
if (response.ok && response.body) {
tx.setCurrentLineField("description", response.body.name);
tx.setCurrentLineField("price", response.body.price);
}
}
You can integrate with any system that provides a REST API:
tx.http.request() to communicate with your external systemsFormula fields run during document extraction, ensuring data is synchronized and validated in real-time as documents are processed.