Author Topic: Can I find the creator of an object using a particular hook?  (Read 3918 times)

SteveRyherd

  • Newbie
  • *
  • Posts: 3
    • View Profile
I may have missed something when testing this earlier, but it appears that some of the object's properties are Private when passed to the hook.  I was trying to create a hook to automatically (at least uni-directionally) send an object to Google Events for instant mobile synchronization.

If that's not possible I guess the alternative is to setup a script to be ran periodically and do some data scraping in both Google and Feng for changed/created/deleted items and sync the changes.

Any ideas, or anyone else already have a functioning Contact/Event/Document sync?

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Can I find the creator of an object using a particular hook?
« Reply #1 on: June 07, 2010, 01:14:39 pm »
Have you tried subscribing to a Feng Calendar in Google Calendar?

Does it not solve you needs?

SteveRyherd

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Can I find the creator of an object using a particular hook?
« Reply #2 on: June 10, 2010, 12:38:58 pm »
No, sadly, because that doesn't work for documents or contacts -- And I want to use Google as an intermediary to mobile synchronizations through ActiveSync.

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Can I find the creator of an object using a particular hook?
« Reply #3 on: June 10, 2010, 03:05:02 pm »
What about this?

Code: [Select]
$object->getCreatedBy() //this returns a User object
$object->getCreatedByDisplayName() // this return a strin