Question

Photo of Huzaifa Tapal

0

Custom CSV import

The existing CSV import power tool plugin works for most scenarios, however, it doesn't have a good way of defining known relationships the data for which may already be available in the CSV.

I'd like to build a custom CSV import plugin and use the existing CSV import as a basis for that.  This will give me a good understanding of building plugins with Rock to get a better understanding of the system.

Where can I find the code for the existing CSV import plugin to use as a starter template?

  • Photo of Jeremy Hoff

    0

    Hi Huzaifa - it's nice to make your acquaintance.

    I presume you are referring to the CSV Import Tool that was added circa v.14: The documentation is linked here, and it is an excellent tool that does support family relationship information: https://community.rockrms.com/Rock/BookContent/9#csvimport

    The above is, essentially, a UI to the Slingshot tool for the Person Entity. As a developer, you will want to get familiar with Slingshot to see if this will help you further. See: https://github.com/SparkDevNetwork/Slingshot

    I hope that helps,

  • Photo of Huzaifa Tapal

    0

    Your reply is extremely helpful Jeremy!  As I've dug deeper in the code, I'm learning how powerful the bulk importer already is!

    Thank you for sharing the link to Slingshot source!