CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Activity API & unique fields
Pages: [1]

Author Topic: Activity API & unique fields  (Read 786 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Activity API & unique fields
April 20, 2011, 09:36:47 pm
OK, so the big challenge for the api going forwards is to get the acceptable fields, mandatory fields & getfields return function all working together.

So far on the activity api I have discovered that we advertise (through getfields)
Activity Type (activity_type)

but require one of these 2 which are not advertised:

'activity_name'
'activity_type_id'

Do we completely abandon trying to use exportable fields - as used in activity api?

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Activity API & unique fields
April 20, 2011, 09:47:33 pm
Hi,

Dlobo, can we stop using the unique names and put the name of the entity as prefix if there is a nameclash?

Or at least use the name instead of the unique name as the key in fields() ?

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Activity API & unique fields
April 21, 2011, 12:56:03 am
Hi,

I think it would be worth making a time to talk this through on IRC - although it might be worth trying to articulate some of the problems / the goal here first.

It's probably also worth coming up with a list of api sore points / things we want so we can figure out if there are some priorities (and whether anyone actually has time to work on them).
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Activity API & unique fields
April 21, 2011, 01:02:23 am
I've started a page for #2

http://wiki.civicrm.org/confluence/display/CRMDOC40/api+roadmap+%28wishlist%29
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Activity API & unique fields
April 25, 2011, 07:06:13 pm
Oh #2 - it looks like if we push all date fields through this function

            $params['activity_date_time'] = CRM_Utils_Date::processDate( $params['activity_date_time'] );

it will deal to the random date handling currently in place
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Activity API & unique fields

This forum was archived on 2017-11-26.