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 (Moderator: Donald Lobo) »
  • Create New Activity: civicrm_activity_create. Not found with Advanced Search
Pages: [1]

Author Topic: Create New Activity: civicrm_activity_create. Not found with Advanced Search  (Read 1424 times)

ijames

  • Guest
Create New Activity: civicrm_activity_create. Not found with Advanced Search
October 06, 2008, 03:14:17 pm
Hi All,

I'm using Civicrm 2.0.1. Drupal 5.

I create Activities using the API civicrm_activity_create. 

When I try to use Advanced Search to locate the activities created this way, it doesn't seem to work. 

Looking at the civicrm_activity table, there seems to be no particular distinction from other records created within CiviCRM.

Yet when I go to a contact's activity and I hit the Save button within CiviCRM, it then gets found by Advanced Search.

I can't find a bug report or anything for this particular issue.  Does somebody know what's going on here?  What is the difference between the API and manual activity addition?  How does Advanced search work?  Is this a character encoding issue?

All I'm searching on is a particular Activity all other fields are left alone.

Thanks much!

James
« Last Edit: October 06, 2008, 03:22:29 pm by ijames »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Create New Activity: civicrm_activity_create. Not found with Advanced Search
October 06, 2008, 04:52:38 pm

can you cut-n-paste two activity records. One created by the API and one created via the UI. Please try to keep details the same

also what activity fields are you searching that does not display the API activities? (since a couple of other activity tables might be involved (civicrm_activity_assignment, civicrm_activity_target). Can we also the data dump for those two table for the two different activity id;


you might want to use the foll snippet (replace the id column with the right values)

Code: [Select]
select * from civicrm_activity where id in (1,2) \G;
select * from civicrm_activity_target where activity_id in (1,2) \G;
select * from civicrm_activity_assignment where activity_id in (1,2) \G;


thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ijames

  • Guest
Re: Create New Activity: civicrm_activity_create. Not found with Advanced Searc
October 06, 2008, 05:06:30 pm
Thanks Lobo!

It looks like it's got something to do with the civicrm_activity_target not being there.  This is the "with" field?  I hadn't included that in the parameters but now I'm suddenly running into other problems, probably unrelated, where my soap is not finding user_load?

What is the target table and link used for?

James

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Create New Activity: civicrm_activity_create. Not found with Advanced Search

This forum was archived on 2017-11-26.