Results 1 to 3 of 3

Thread: date_entered always null (epoch) using API

  1. #1
    jlw253 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Default date_entered always null (epoch) using API

    Version 6.1.3 (Build 5640)

    I am using the Sugar web service interface via VisualStudio 2010 generated c# client.

    I am using this client to create new Contact and Opportunity records using set_entry and a NV list with all the desired fields and their values.

    For some mysterious reason, the "date_entered" field always ends up as 1970-01-01 (the epoch date) when I create new contacts and opportunities. I am populating the "date_modified" field in exactly the same manner and that field is being persisted properly.

    I have searched this forum, Google and the Sugar bug list but can't find any indication that this problem is any bigger than something stupid in my code.



    Has anyone run into the same issue? How did you resolve it?

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: date_entered always null (epoch) using API

    This is usually a date formatting issue. Give this post a look from my blog: http://cheleguanaco.blogspot.com/201...and-dates.html
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    jlw253 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Thumbs up SOLVED: date_entered always null (epoch) using API

    Angel -

    Thank you for your response. It got me thinking and re-evaluation my Local / UTC conversions.

    It was as simple as having swapped the two -- I was putting the date_entered out in the future (rather than "in the past").

    FYI for anyone with a similar issue -- Sugar's response was to simply discard the invalid date and use the epoch without complaining anywhere.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to update date_entered i.e. Date Created
    By ivit in forum Developer Help
    Replies: 10
    Last Post: 2010-11-09, 08:57 AM
  2. Date_Entered difiere del Sugar al MYSQL
    By vegaai in forum Espaņol
    Replies: 7
    Last Post: 2010-05-11, 02:45 PM
  3. Date_entered Search not working
    By tboard0166 in forum Help
    Replies: 0
    Last Post: 2008-04-24, 02:02 PM
  4. NULL fields showing in the view as "NULL"
    By Staple in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-01-15, 01:54 PM
  5. HELP: Sorting Leads by date_entered
    By mjar81 in forum Help
    Replies: 0
    Last Post: 2005-04-13, 03:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •