If you have code or an extension that can add columns to the accounting batch export file, please share.

Specifically, we want to add "campaign" and "external id" to every row.

Preferably, we'd like it to update the iif (quickbooks file)

thank you

  • if you are using Drupal it would be worth exploring if those options are available to you via a Drupal View
    – petednz - fuzion
    Mar 27, 2019 at 1:00

1 Answer 1


I am not if anyone has done this before but you can use combination of hook_civicrm_batchItems and hook_civicrm_batchQuery to add columns in csv files. I don't think there is any easy solution to add column in iif export file.



  • I have done this to complete change the layout of the items, works fine :-) Mar 27, 2019 at 9:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.