Results 1 to 2 of 2

Thread: SOAP & Logic Hooks compatibility problem

  1. #1
    EDUCASTREAM is offline Senior Member
    Join Date
    Jul 2009
    Posts
    52

    Default SOAP & Logic Hooks compatibility problem

    Hey Sugar mates,

    I'm having some trouble with date fields using Logic Hooks on the Leads module.
    When I trigger the hook through the sugar interface by modifiing a Lead for instance, the hook works fine.
    I use the function $timedate->to_display_date_time on datetime fields so that they are saved correctly (i have the french version of sugar).
    the date formats are :
    IN : YYYY-MM-DD HH:MM:SS
    OUT : DD/MM/YYYY HH:MM

    The problem is that when I use SOAP to insert new Leads, the output date format accepted by Sugar changes and is YYYY-MM-DD HH:MM:SS
    And then , the dates are lost...

    Could anyone tell me what I should do to solve this problem?

  2. #2
    agcopley is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Santiago, Chile
    Posts
    204

    Default Re: SOAP & Logic Hooks compatibility problem

    I have a similar problem where custom date fields are not saved properly when accessed directly in an assignment for example. As a temporary solution, I convert all dates to the db format using timedate prior to saving. Its a rough fix but it works!

    Andrew

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. logic hooks problem
    By sugar7478 in forum Developer Help
    Replies: 1
    Last Post: 2009-04-07, 04:03 AM
  2. Logic hooks problem
    By flymirco in forum Developer Help
    Replies: 4
    Last Post: 2009-03-27, 09:11 AM
  3. Problem with logic hooks and refresh
    By mallwitz in forum Developer Help
    Replies: 2
    Last Post: 2008-10-01, 08:51 AM
  4. Problem with Logic Hooks
    By perkvile in forum Developer Help
    Replies: 8
    Last Post: 2008-02-14, 02:09 AM
  5. SOAP and logic hooks
    By dholmes in forum Developer Help
    Replies: 4
    Last Post: 2007-10-29, 10:41 PM

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
  •