Logo Parsio Knowledge Base

Data Post-processing

The Post-processing step allows you to modify parsed data before exporting it to webhooks, Zapier etc. Write Python code to add custom formatting and business logic: merge or split fields, format dates, prevent some documents from being exported and much ...

Common Examples

Create a new field # Create field data['new_field'] = 'Field value' # Create field based on another field. If 'email' doesn't exist, use the default value data['customer_email'] = data.get("email", 'default@example.com') Delete a field del data['e ...

Loops in Python

Let's say you have a books array (parsed using the Table field type): # data['books']: [ { "name": 'Book 1', "price": 44.99, "qty": 1 }, { "name": 'Book 2', "price": 9.99, "qty": 3 }, { "name": 'Book 3', "price": 24.99, "qty": 2 } ] "For" l ...