[SalesForce] How to insert a Date and Boolean columns into a DataExtension in ExactTarget using FuelSdk in Java

I have my Java based FuelSdk working for String column types. But as soon as I try to insert a date or a boolean, the application blows up.

It looks like I need to specify the data type for the column, but I can't find any example on how do that.

I have found the questions here about date format and have confirmed that I am writing the date in the correct format.

How can I tell FuelSdk that I am inserting a Date?

Best Answer

Fuel isn't going to format your date for you, nor will ExactTarget once it receives the data. You need to provide a valid data format for the date field if you want ExactTarget to accept it. You would pass it through Fuel as a string (as you are ostensibly doing) but it needs to be in the Date format.

Acceptable Date Formats:

Date: "YYYY-MM-DD"

Date and Time: "YYYY-MM-DDThh:mm:ssZ"

(Date and Time also accepts offset times like YYYY-MM-DDThh:mm:ss+hh:mm and YYYY-MM-DDThh:mm:ss-hh:mm)

Related Topic