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) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • import partipants for events
Pages: [1]

Author Topic: import partipants for events  (Read 1705 times)

CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
import partipants for events
June 17, 2008, 02:43:12 pm
When doing an import i only have the particpant id, contact id, or external id.

 1.  can i have email address as an option?   
 2. Whats the difference between participants id and contact id.


CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
Re: import partipants for events
June 17, 2008, 02:58:52 pm
when i export a list of participants  when searching for a group  i only get the contact id.. can i export a list with the participants id aswell


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: import partipants for events
June 18, 2008, 02:54:08 pm

1. That is not possible without code changes in 2.0 and 2.1. You can probably do an export to get the contact_id <-> email mapping, do a merge of the two files and then import the resultant file

2. a contact could be a participant in one or more events. i.e. the same contact_id could have multiple participant ids. Giving us a participant id, allows us to find the relevant contact id

3. This might also need some code changes in 2.0. I think the code changes might be fairly trivial, especially if this is a participant search (i.e. we already have the participant ids). 2.1 is improving the export feature of all components. You can try it on the sandbox (http://sandbox.civicrm.org/)

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

CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
Re: import partipants for events
June 18, 2008, 04:43:34 pm
Lobo
you mentioned:

You can probably do an export to get the contact_id <-> email mapping, do a merge of the two files and then import the resultant file

i just realized that when importing partipants you only have the Partipants id not the contact id.   your suggestion above, if the contact has many partipants id.. how do i know which one i need. ?

why does a contact id have multiple partipants id's .. why cant we just associated the event id# with the contact id?

Any other suggestions how to import partipants for events.
 

CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
Re: import partipants for events
June 18, 2008, 05:22:20 pm
guess what i can do, is do an update of all the partipants with the email address ( a regular import of contacts) and add a unique external id.. and then do the event partipants again using the external id.    just need to remember to delete the external id afterwerds

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: import partipants for events
June 18, 2008, 07:29:37 pm

a contact could be registered to different events and have different information (different role, status etc). having 'n' participant records for 'n' different events for 1 contact is pretty standard (and recommended) database design

Note that in import, you are always importing 'new' participant records for an 'event', Participant import does not update a participant record, it creates a participant record.

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

CousiMo

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 2
Re: import partipants for events
June 19, 2008, 05:12:46 am
Ok now i get it...thanks for all your help.. i summary:

when the participant is already registered for an event, he/she has a particant id #   and if you would like to change the status( registered, attended) you need to have this particpant id # to change it.. therefore you export the participants this will give you the participants id #  you can now import with the change of status

When you wish to import participants who are not registered in the db yet,  then you do the two step process by doing an import of contacts and assigning a unique value to the external id.  then doing import for events using the external id  ..this will now CREATE a new participant id # .

 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • import partipants for events

This forum was archived on 2017-11-26.