GuidesField Mapping

Field Mapping

Configure how data flows into and out of Ledly by mapping fields at each stage.

Overview

Ledly uses a two-stage field mapping system:

  1. Inbound Mapping - Map fields from vendors and lead sources to Ledly’s standard schema
  2. Outbound Mapping - Map Ledly fields to your CRM (Salesforce) or custom endpoints

Both inbound and outbound mappings must be configured before leads can flow through the system.


Inbound Mapping

Map incoming lead fields from vendors and forms to your standard Ledly schema.

Why Inbound Mapping?

Different lead sources use different field names:

  • Vendor A sends firstName, Vendor B sends first_name
  • Some sources use emailAddress, others use email

Inbound mapping normalizes all data to a consistent format.

Creating an Inbound Map

  1. Go to SettingsField MappingInbound
  2. Select the lead source you want to map
  3. For each source field, select the corresponding Ledly field
  4. Click Save

Example Inbound Mapping

Source FieldLedly Field
firstNamefirst_name
lastNamelast_name
emailAddressemail
cellPhonephone
programOfInterestprogram_code

Default Values

Set default values for fields that aren’t provided by the source:

  • Static Value: Always use a specific value (e.g., source = "Vendor A")
  • Source Name: Automatically use the lead source name
  • Current Date: Use the timestamp when the lead was received

Transformations

Apply transformations to incoming data:

TransformationDescriptionExample
LowercaseConvert to lowercaseJOHNjohn
UppercaseConvert to uppercasejohnJOHN
TrimRemove leading/trailing whitespace john john
Phone FormatStandardize to E.164(555) 123-4567+15551234567
Title CaseCapitalize first lettersjohn doeJohn Doe

Outbound Mapping

Map Ledly fields to your destination - Salesforce, custom endpoints, or other CRMs.

Why Outbound Mapping?

Your CRM may use different field names or have custom fields:

  • Salesforce uses FirstName, Ledly uses first_name
  • You may have custom Salesforce fields like Program_Interest__c

Outbound mapping ensures data lands in the right place.

Salesforce Field Mapping

  1. Go to SettingsCRM IntegrationField Mapping
  2. For each Ledly field, select the Salesforce field to map to
  3. Click Save Mapping
⚠️

You must connect to Salesforce before configuring field mapping. See the Salesforce Integration guide.

Standard Salesforce Mappings

Ledly FieldSalesforce Lead Field
emailEmail
first_nameFirstName
last_nameLastName
phonePhone
companyCompany

Custom Salesforce Fields

Map Ledly fields to custom Salesforce fields:

Ledly FieldSalesforce Field
program_codeProgram_Interest__c
start_datePreferred_Start_Date__c
lead_sourceLead_Source_Detail__c

Custom Endpoint Mapping

For webhook or API destinations:

  1. Go to SettingsWebhooks → Select your endpoint
  2. Click Configure Payload
  3. Map Ledly fields to your desired JSON structure
  4. Click Save

Example custom payload template:

{
  "contact": {
    "email": "{{email}}",
    "name": "{{first_name}} {{last_name}}",
    "phone": "{{phone}}"
  },
  "interest": {
    "program": "{{program_code}}",
    "source": "{{lead_source}}"
  }
}

Mapping Workflow

The complete lead flow with field mapping:

Vendor/Source → Inbound Mapping → Ledly → Outbound Mapping → Salesforce/Endpoint
     |                |              |              |                |
  Raw fields    Normalized to    Stored in     Mapped to CRM      Delivered
                Ledly schema     database      field names

Best Practices

  1. Map all required fields first - Ensure email and other required fields are mapped before testing
  2. Test with sample leads - Use the test feature to verify mappings before going live
  3. Document custom fields - Keep a record of custom field mappings for your team
  4. Review regularly - Update mappings when adding new lead sources or CRM fields

Troubleshooting

Leads not appearing in Salesforce

  • Verify outbound mapping is configured
  • Check that required Salesforce fields are mapped
  • Review the sync log for errors

Field values are empty

  • Confirm the source is sending the expected field names
  • Check inbound mapping for the lead source
  • Verify transformations aren’t clearing values

Custom fields not syncing

  • Ensure the Salesforce field API name is correct (ends with __c)
  • Verify field-level security allows the connected user to write to the field
  • Check that the field type matches (text to text, date to date, etc.)