API Java: How to sync datetime attribute | Community
Skip to main content
December 18, 2013
Question

API Java: How to sync datetime attribute

  • December 18, 2013
  • 1 reply
  • 706 views
Hi All

When using syncLead,
I'd like to add a Timestamp(datetime from SQL) attribute to my lead, DoB for example, but the attribute type is always String, and the value can only be a string.
Can I change it to Timestamp/Datetime or there is another approach.
Thanks a lot.


Also, could someone tell me where can I find the full documatation of the API for Java. Class map, methods summary so on so forth.
Cheers
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

December 18, 2013
The API itself does not impose a data type.

It is unclear why the screen shot is pre-setting to string.

The attributes are defined as

           <leadAttributeList>
               <attribute>
                  <attrName></attrName>
                  <attrType></attrType>
                  <attrValue></attrValue>
               </attribute>
            </leadAttributeList>

You can find complete documentation with examples in Java at http://developers.marketo.com/documentation/soap/synclead/