Skip to main content

Field Mapping

Field mapping is how you tell the module: "When Facebook sends a field called email, put it in the Email field in Perfex CRM."

How to Accessโ€‹

Go to Meta Leads โ†’ Field Mapping in the sidebar.

Or navigate to: https://yourcrm.com/admin/facebookleadsintegration/field_mapping

How Field Mapping Worksโ€‹

When someone fills out your Lead Form on Facebook/Instagram, the data looks like this:

{
"full_name": "John Smith",
"email": "[email protected]",
"phone_number": "+1234567890",
"company_name": "Acme Corp",
"city": "New York"
}

The module needs to know where to put each value in Perfex CRM:

Facebook Field          โ†’    Perfex CRM Field
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
full_name โ†’ Lead Name
email โ†’ Email
phone_number โ†’ Phone
company_name โ†’ Company
city โ†’ City

Default Mappings (Automatic!)โ€‹

Good news! The module comes with built-in default mappings for common Facebook fields. These work automatically - no configuration needed!

Facebook FieldPerfex CRM FieldAuto-Mapped?
full_nameLead NameYes
first_name + last_nameLead NameYes
emailEmailYes
phone_numberPhoneYes
company_nameCompanyYes
street_addressAddressYes
cityCityYes
stateStateYes
countryCountryYes
zip_codeZip CodeYes
websiteWebsiteYes
job_titlePositionYes
tip

If your Lead Form uses these standard Facebook field names, everything maps automatically! You don't need to configure anything.

Custom Field Mappingsโ€‹

For any non-standard fields (custom questions in your Lead Form), you can create custom mappings.

Adding a Custom Mappingโ€‹

  1. Go to Field Mapping page
  2. Click "Add Mapping"
  3. Fill in:
ColumnWhat to EnterExample
Facebook Field (left box)The field name from your Lead Formbudget
Perfex CRM Field (right dropdown)Where to store it in Perfex"Description" or a custom field
  1. Click "Save Mappings"

Example: Custom Questionsโ€‹

Say your Lead Form asks: "What's your monthly budget?"

If you named the field monthly_budget in your Lead Form:

Facebook Field: monthly_budget    โ†’    Perfex CRM Field: Description

Or if you have a custom field in Perfex:

Facebook Field: monthly_budget    โ†’    Perfex CRM Field: leads_budget (custom)

Using Perfex CRM Custom Fieldsโ€‹

If you've created custom fields for leads in Perfex CRM, they'll appear in the dropdown under "Custom Fields".

How to Create a Custom Field:โ€‹

  1. In Perfex CRM, go to Setup โ†’ Custom Fields
  2. Click New Custom Field
  3. Set:
    • Field Belongs To: Leads
    • Field Name: e.g., "Budget"
    • Slug: e.g., leads_budget
  4. Save

This custom field will now appear in the Field Mapping dropdown!

tip

Pro tip: Name your Facebook form fields using the same slug as your Perfex custom fields (e.g., leads_budget), and they'll be automatically mapped without any manual configuration!

Finding Your Facebook Field Namesโ€‹

Not sure what your Facebook form fields are called? Here's how to find out:

Method 1: Check the Lead Form in Ads Managerโ€‹

  1. Go to Facebook Ads Manager
  2. Open your campaign โ†’ Ad set โ†’ Ad
  3. Click on the Lead Form
  4. Look at the field names (the "Field Name" or "Question ID")

Method 2: Check a Test Leadโ€‹

  1. Send a test lead from the module (Settings โ†’ "Send Test Lead")
  2. Go to Sync History
  3. Click on the test lead entry
  4. You'll see the exact field names Facebook sent

Method 3: Use Facebook's Lead Ads Testing Toolโ€‹

  1. Go to Lead Ads Testing Tool
  2. Select your Page and Form
  3. Create a test lead
  4. Check Sync History for the field names

Removing Mappingsโ€‹

To remove a custom mapping:

  1. Click the red โœ• button next to the mapping row
  2. Click "Save Mappings"
warning

Removing a mapping doesn't delete existing leads - it only affects future leads.

Mapping Priorityโ€‹

When a lead comes in, the module processes fields in this order:

  1. Custom mappings (your manual configurations) - checked first
  2. Default mappings (built-in standard fields) - used as fallback
  3. Auto-detection (if field name matches a Perfex custom field slug)

This means your custom mappings always take priority over default ones!

Common Questionsโ€‹

"What if I don't configure any mappings?"โ€‹

The default mappings will handle all standard fields automatically. You only need custom mappings for custom questions in your Lead Forms.

"What if Facebook sends a field I haven't mapped?"โ€‹

It will be stored in the lead's Description field as additional data, so you never lose information.

"Can I map one Facebook field to multiple Perfex fields?"โ€‹

Not directly - each Facebook field maps to one Perfex field. If you need this, use Perfex CRM's workflow automations.

Ready to learn about Lead Ads? What Are Lead Ads?