Body: <p>I'm updating a set of activities in CiviCRM.</p>
  <p>previously these have been recorded ad-hoc on the database, but in future they'll be part of a case.</p>
  <p>To update previous details and bring them into the case structure can I update an activity via api importer and stipulate a case id? So that after import the old activities will show as part of a case?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-02T18:45:18.643Z
Comments.Text: i don't think this has anything to do with 'drupal-views' so perhaps that Tag should be removed
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-02T18:48:36.710Z
Comments.Text: Are there a lot that you want to do in bulk or can you just use file-on-case individually?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-02T18:50:35.050Z
Comments.Text: It's possible to do that as I wrote some code to do exactly that, but unsure whether it's possible to do it via the api importer.
Comments.UserDisplayName: Andy Clark
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-03T10:12:45.780Z
Comments.Text: Thanks petednz. Fixed that. Bad proof-reading on my part.
  
  demerit- don't know yet. currently changing the system so some current and backdated cases may need updating. Will look at updating one byone as a fall back.
  
  Andy, the very notion of writing code fills me with existential dread.
Comments.UserDisplayName: Craig Almond
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-03T10:15:32.257Z
Comments.Text: And currently I'm getting the simple word "Error" when accessing the importer. Waiting for tech support to get that working again.
Comments.UserDisplayName: Craig Almond
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-05T23:05:36.793Z
Comments.Text: More thoughts on this, Craig. You have a bunch of activities for a contact, who has 2 or more cases.  How do you know which activities should be attached to which case?  This is a problem which might be solvable if there were a very few but not for many.  But maybe this is not your situation.
Comments.UserDisplayName: Andy Clark
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-08T10:09:04.430Z
Comments.Text: Hi Andy- if we have multiple cases for an individual I think they will be rare. And probably update via file on case, as per Demerit's suggestion.
Comments.UserDisplayName: Craig Almond
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-08T10:11:11.730Z
Comments.Text: Got the api importre extension upgraded so I can now at least access it.
  
  Case ID is available as an import field for activities so bulk update looks feasible.
  
  I'll give it a run through in a few weeks time (still finalising case activity/ data structure). And post what I did as an answer.
Comments.UserDisplayName: Craig Almond
Tags: <civicase><data-import>
Title: Can I use civi import/export to update a set of activities and attach them to cases?
ThreadText: # Can I use civi import/export to update a set of activities and attach them to cases?
  
  (Asked by: username_0 on 2021-11-02)
  
  I'm updating a set of activities in CiviCRM.
  
  previously these have been recorded ad-hoc on the database, but in future they'll be part of a case.
  
  To update previous details and bring them into the case structure can I update an activity via api importer and stipulate a case id? So that after import the old activities will show as part of a case?
  
  **Tags:** civicase, data-import
  
  > **Comments:**
  > **username_1**: i don't think this has anything to do with 'drupal-views' so perhaps that Tag should be removed  
  > **username_2**: Are there a lot that you want to do in bulk or can you just use file-on-case individually?  
  > **username_3**: It's possible to do that as I wrote some code to do exactly that, but unsure whether it's possible to do it via the api importer.  
  > **username_0**: Thanks petednz. Fixed that. Bad proof-reading on my part.  demerit- don't know yet. currently changing the system so some current and backdated cases may need updating. Will look at updating one byone as a fall back.  Andy, the very notion of writing code fills me with existential dread.  
  > **username_0**: And currently I'm getting the simple word "Error" when accessing the importer. Waiting for tech support to get that working again.  
  > **username_3**: More thoughts on this, Craig. You have a bunch of activities for a contact, who has 2 or more cases.  How do you know which activities should be attached to which case?  This is a problem which might be solvable if there were a very few but not for many.  But maybe this is not your situation.  
  > **username_0**: Hi Andy- if we have multiple cases for an individual I think they will be rare. And probably update via file on case, as per username_2's suggestion.  
  > **username_0**: Got the api importre extension upgraded so I can now at least access it.  Case ID is available as an import field for activities so bulk update looks feasible.  I'll give it a run through in a few weeks time (still finalising case activity/ data structure). And post what I did as an answer.  
  
  ---
  
  ## 0 answers
  
  