Error when sending birthdate to Salesforce


#1

I’m trying to map a form to Salesforce and one of the fields is Birthdate which is mapping to Birthdate in Salesforce, but I keep getting the following error:

Request Error: Salesforce received 04/26/1988 which should be sent as a date field. Please update your field mapping configuration.

I tried leaving that field unmapped and it still gave me the error. Anyone have any ideas?


#2

Hi there -

We covered this on chat this morning, but I just wanted to reply publicly for the benefit of others who may be having the same issue.

Unbounce sends all its form field data as strings Ð so if a Salesforce field is set to only accept dates, you may see the above error in the ‘Integration Errors’ section.

The easiest fix is to change the Salesforce field to a string or text type, so it accepts the date string we send.

Alternatively, you may be able to set up an Apex trigger on the Salesforce end to convert the incoming string to a date object. Here is their developer guide: https://www.salesforce.com/us/develop…

I hope that helps!