View Source Glific.Contacts.Import (Glific v5.1.6)

The Contact Importer Module

Link to this section Summary

Functions

This method allows importing of contacts to a particular organization and group

Link to this section Functions

Link to this function

add_contacts_to_group(organization_id, group_label, opts \\ [])

View Source
@spec add_contacts_to_group(integer(), String.t(), [{atom(), String.t()}]) :: tuple()

Move the existing contacts to a group.

Link to this function

import_contacts(organization_id, contact_attrs, opts)

View Source
@spec import_contacts(non_neg_integer(), map(), [{atom(), String.t()}]) :: tuple()

This method allows importing of contacts to a particular organization and group

The method takes in a csv file path and adds the contacts to the particular organization and group.