DA4: Data in motion

Lesson 2 of 5 ยท reading 15โ€“25 minutes; practice and project time is on the module page

Mapping fields between apps

๐ŸŽฏYou'll be able to

Write a field-mapping table between two apps, including name, structure, type and missing-value rules.

๐Ÿ The everyday picture

A translator doesn't just swap words; she knows that "Mrs Sharma" in one letter becomes "Smt. Sharma" in another, and that some phrases have no direct match. Mapping fields between apps is translation for data.

๐Ÿ“˜What it really is

๐Ÿ“A worked example

Mapping a Sharma Textiles order into the CRM:

Shop field CRM field Transformation If missing
customer.name full_name Trim spaces, tidy capitals Send to review
customer.phone mobile Format as +91 and 10 digits (Lesson 5) Send to review
customer.email email Lowercase Leave empty (optional in CRM)
lines total last_order_value Sum of qty ร— price, convert paise to rupees (Lesson 4) โ€”
order_id last_order_ref None โ€”
โ€” source Fixed value "Website" โ€”

๐ŸŒWhere it's used

๐Ÿ“Case scenario

New leads keep failing to reach the CRM with the error "Stage: invalid value". The form sends "new lead", but the CRM only accepts "New". You add a small translation step that maps form values to CRM stages, with a fallback that sends unknown values to review. Leads flow again, and any future surprise is caught.

๐Ÿ–ฑ๏ธTry it

Write a mapping table for sending your DA2 orders to a CRM of your choice (your Level 5 CRM, or a free CRM's documentation). Include at least six fields, a transformation for each, and a rule for missing values.

โš ๏ธCommon mistakes

๐Ÿ› ๏ธFor your project

Write the mapping from the payment event to the simulator's invoice fields (order_id, payment_id, amount_paise, paid_at_ist). It goes into your handover data map.

โœ…Quick check

What four things should a mapping table record?

Show the answer

The source field, the destination field, the transformation, and what to do if the value is missing.

Why send records with missing required fields to a person rather than inventing a value?

Show the answer

Invented values look real and spread errors; a person can find the right value or decide to skip the record.

โ† PreviousJSON payloads and items
ProLearners Assist