πŸ”€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": "john@example.com",
  "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 Field
Perfex CRM Field
Auto-Mapped?

full_name

Lead Name

βœ… Yes

first_name + last_name

Lead Name

βœ… Yes

email

Email

βœ… Yes

phone_number

Phone

βœ… Yes

company_name

Company

βœ… Yes

street_address

Address

βœ… Yes

city

City

βœ… Yes

state

State

βœ… Yes

country

Country

βœ… Yes

zip_code

Zip Code

βœ… Yes

website

Website

βœ… Yes

job_title

Position

βœ… Yes

πŸ’‘ 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:

Column
What to Enter
Example

Facebook Field (left box)

The field name from your Lead Form

budget

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:

Or if you have a custom field in Perfex:


🏷️ 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! πŸŽ‰

πŸ’‘ 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. Open your campaign β†’ Ad set β†’ Ad

  2. Click on the Lead Form

  3. 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. Select your Page and Form

  2. Create a test lead

  3. 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" πŸ’Ύ

⚠️ 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?

Last updated