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 Field | Perfex CRM Field | Auto-Mapped? |
|---|---|---|
full_name | Lead Name | Yes |
first_name + last_name | Lead Name | Yes |
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โ
- Go to Field Mapping page
- Click "Add Mapping"
- 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 |
- 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:โ
- In Perfex CRM, go to Setup โ Custom Fields
- Click New Custom Field
- Set:
- Field Belongs To: Leads
- Field Name: e.g., "Budget"
- Slug: e.g.,
leads_budget
- 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โ
- Go to Facebook Ads Manager
- Open your campaign โ Ad set โ Ad
- Click on the Lead Form
- Look at the field names (the "Field Name" or "Question ID")
Method 2: Check a Test Leadโ
- Send a test lead from the module (Settings โ "Send Test Lead")
- Go to Sync History
- Click on the test lead entry
- You'll see the exact field names Facebook sent
Method 3: Use Facebook's Lead Ads Testing Toolโ
- Go to Lead Ads Testing Tool
- Select your Page and Form
- Create a test lead
- Check Sync History for the field names
Removing Mappingsโ
To remove a custom mapping:
- Click the red โ button next to the mapping row
- 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:
- Custom mappings (your manual configurations) - checked first
- Default mappings (built-in standard fields) - used as fallback
- 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?