Data transformation

How to normalize order statuses for a CRM

2026-06-20
Task

Different sources send the same state as completed, paid or 1. The CRM needs one controlled value.

Short answer

Create crm_status and add replacement rules: payment variants become paid, cancellation variants become canceled.

How to do it in Eofferix

  1. Create crm_status from the source status.
    Order statuses normalized for a CRM
    The table maps different source statuses to one CRM dictionary.
  2. Add replacement rules for each known supplier value.
    Replacement rules for order statuses
    The rules replace supplier values with final CRM values.
  3. Use exact matching for numeric codes so partial values are not changed by accident.
  4. Save the template and test it on real status samples.

Before / after

The data below is a training example and does not belong to real user files.

Before

source data
order_idorder_status
1001completed
1002paid
10031
1004canceled

After

result
order_idcrm_status
1001paid
1002paid
1003paid
1004canceled

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up