MAPI Manual

NAME

LOAD_CONTACT_TOCONTACTGROUP

FUNCTION

Load contacts from a file to a contact group

SYNOPSIS

login_name, login_passwd, contactgroup_id, field_map, delimiter, firstlineistitle, contact_file

DESCRIPTION

This function allows users to load contacts from a file to a contact group.

Required Parameters

* action: LOAD_CONTACT_TOCONTACTGROUP.
* login_name: login name of the user.
* login_passwd: login password.
* contactgroup_id: ID of the contact group.
* field_map: the mapping of the columns between the contacts file and the contact group. An example value is '1_2,2_1,3_3'. In this example, '1_2' means the second column within the contacts file maps to the first column of the contact group.
* delimiter: the delimiter of the columns within the contacts file, e.g., " , " (comma), " ; " (semicolon).
* firstlineistitle: the value of this field is '1' or '0'. '1' means the first line within the contacts file contains the titles of the columns; otherwise, value is '0'.
* contact_file: contacts file path.

RETURN DATA

The response contains the following attribute:
* msg: a string indicating the contacts file have been successfully loaded.

ROLE PERMITTED

Manager

EXAMPLES

Below is the HTML code sample for loading contacts:

<html>
    <body>
        <form method="POST" enctype="multipart/form-data"
              action="http://app02.yvntech.com/MapIHttpS/MapIS?action=LOAD_CONTACT_TOCONTACTGROUP">
           
            <p>Login name:<input type="text" name="login_name" value="" /></p>
           
            <p>Password:<input type="password" name="login_passwd" value="" /></p>

            <p>Contact group ID:<input type="text" name="contactgroup_id" value="" /></p>
                      
            <p>Field map:<input type="text" name="field_map" value="1_1,2_2,3_3" /></p>
           
            <p>Delimiter:<input type="text" name="delimiter" value="," /></p>
           
            <p>Is first line the title?<input type="text" name="firstlineistitle" value="1" /><p>
           
            <p>Choose file:<input type="file" name="contact_file"/></p>

            <input type="submit" value="Submit" />

        </form>
    </body>
</html>


TIPS

ENVIRONMENT

AUTHOR

YVN Tech

SEE ALSO

ADD_CONTACTGROUP_LOAD_CONTACTS

Mweb v2.0 YVNTECH 2014