Importing contacts/Contacts

From Freephile Wiki
< Importing contacts
Revision as of 22:40, 5 June 2008 by Freephile (talk | contribs) (New page: == SugarCRM Contacts == definition of the SOAP profile for Contacts <source lang="php"> array ( 'module_name' => 'Contacts', 'module_fields' => array ( 0 => array ( ...)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SugarCRM Contacts[edit | edit source]

definition of the SOAP profile for Contacts

array (
  'module_name' => 'Contacts',
  'module_fields' => 
  array (
    0 => 
    array (
      'name' => 'id',
      'type' => 'id',
      'label' => 'ID:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    1 => 
    array (
      'name' => 'date_entered',
      'type' => 'datetime',
      'label' => 'Date Created',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    2 => 
    array (
      'name' => 'date_modified',
      'type' => 'datetime',
      'label' => 'Date Modified:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    3 => 
    array (
      'name' => 'modified_user_id',
      'type' => 'assigned_user_name',
      'label' => 'Modified By Id',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    4 => 
    array (
      'name' => 'modified_by_name',
      'type' => 'assigned_user_name',
      'label' => 'Modified By Id',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    5 => 
    array (
      'name' => 'created_by',
      'type' => 'assigned_user_name',
      'label' => 'Created By Id',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    6 => 
    array (
      'name' => 'created_by_name',
      'type' => 'assigned_user_name',
      'label' => 'Created By Id',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    7 => 
    array (
      'name' => 'description',
      'type' => 'text',
      'label' => 'Description:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    8 => 
    array (
      'name' => 'deleted',
      'type' => 'bool',
      'label' => 'Deleted',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    9 => 
    array (
      'name' => 'assigned_user_id',
      'type' => 'relate',
      'label' => 'Assigned User',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    10 => 
    array (
      'name' => 'assigned_user_name',
      'type' => 'relate',
      'label' => 'Assigned to:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    11 => 
    array (
      'name' => 'salutation',
      'type' => 'enum',
      'label' => 'Salutation:',
      'required' => 0,
      'options' => 
      array (
        0 => 
        array (
          'name' => '',
          'value' => '',
        ),
        1 => 
        array (
          'name' => 'Mr.',
          'value' => 'Mr.',
        ),
        2 => 
        array (
          'name' => 'Ms.',
          'value' => 'Ms.',
        ),
        3 => 
        array (
          'name' => 'Mrs.',
          'value' => 'Mrs.',
        ),
        4 => 
        array (
          'name' => 'Dr.',
          'value' => 'Dr.',
        ),
        5 => 
        array (
          'name' => 'Prof.',
          'value' => 'Prof.',
        ),
      ),
    ),
    12 => 
    array (
      'name' => 'first_name',
      'type' => 'varchar',
      'label' => 'First Name:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    13 => 
    array (
      'name' => 'last_name',
      'type' => 'varchar',
      'label' => 'Last Name:',
      'required' => 1,
      'options' => 
      array (
      ),
    ),
    14 => 
    array (
      'name' => 'title',
      'type' => 'varchar',
      'label' => 'Title:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    15 => 
    array (
      'name' => 'department',
      'type' => 'varchar',
      'label' => 'Department:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    16 => 
    array (
      'name' => 'do_not_call',
      'type' => 'bool',
      'label' => 'Do Not Call:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    17 => 
    array (
      'name' => 'phone_home',
      'type' => 'phone',
      'label' => 'Home:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    18 => 
    array (
      'name' => 'phone_mobile',
      'type' => 'phone',
      'label' => 'Mobile:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    19 => 
    array (
      'name' => 'phone_work',
      'type' => 'phone',
      'label' => 'Office Phone:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    20 => 
    array (
      'name' => 'phone_other',
      'type' => 'phone',
      'label' => 'Other Phone:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    21 => 
    array (
      'name' => 'phone_fax',
      'type' => 'phone',
      'label' => 'Fax:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    22 => 
    array (
      'name' => 'email1',
      'type' => 'varchar',
      'label' => 'Email:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    23 => 
    array (
      'name' => 'email2',
      'type' => 'varchar',
      'label' => 'Other Email:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    24 => 
    array (
      'name' => 'primary_address_street',
      'type' => 'varchar',
      'label' => 'Primary Address Street:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    25 => 
    array (
      'name' => 'primary_address_city',
      'type' => 'varchar',
      'label' => 'Primary Address City:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    26 => 
    array (
      'name' => 'primary_address_state',
      'type' => 'varchar',
      'label' => 'Primary Address State:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    27 => 
    array (
      'name' => 'primary_address_postalcode',
      'type' => 'varchar',
      'label' => 'Primary Address Postal Code:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    28 => 
    array (
      'name' => 'primary_address_country',
      'type' => 'varchar',
      'label' => 'Primary Address Country:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    29 => 
    array (
      'name' => 'alt_address_street',
      'type' => 'varchar',
      'label' => 'Alternate Address Street:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    30 => 
    array (
      'name' => 'alt_address_city',
      'type' => 'varchar',
      'label' => 'Alternate Address City:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    31 => 
    array (
      'name' => 'alt_address_state',
      'type' => 'varchar',
      'label' => 'Alternate Address State:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    32 => 
    array (
      'name' => 'alt_address_postalcode',
      'type' => 'varchar',
      'label' => 'Alternate Address Postal Code:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    33 => 
    array (
      'name' => 'alt_address_country',
      'type' => 'varchar',
      'label' => 'Alternate Address Country:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    34 => 
    array (
      'name' => 'assistant',
      'type' => 'varchar',
      'label' => 'Assistant:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    35 => 
    array (
      'name' => 'assistant_phone',
      'type' => 'phone',
      'label' => 'Assistant Phone:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    36 => 
    array (
      'name' => 'lead_source',
      'type' => 'enum',
      'label' => 'Lead Source:',
      'required' => 0,
      'options' => 
      array (
        0 => 
        array (
          'name' => '',
          'value' => '',
        ),
        1 => 
        array (
          'name' => 'Cold Call',
          'value' => 'Cold Call',
        ),
        2 => 
        array (
          'name' => 'Existing Customer',
          'value' => 'Existing Customer',
        ),
        3 => 
        array (
          'name' => 'Self Generated',
          'value' => 'Self Generated',
        ),
        4 => 
        array (
          'name' => 'Employee',
          'value' => 'Employee',
        ),
        5 => 
        array (
          'name' => 'Partner',
          'value' => 'Partner',
        ),
        6 => 
        array (
          'name' => 'Public Relations',
          'value' => 'Public Relations',
        ),
        7 => 
        array (
          'name' => 'Direct Mail',
          'value' => 'Direct Mail',
        ),
        8 => 
        array (
          'name' => 'Conference',
          'value' => 'Conference',
        ),
        9 => 
        array (
          'name' => 'Trade Show',
          'value' => 'Trade Show',
        ),
        10 => 
        array (
          'name' => 'Web Site',
          'value' => 'Web Site',
        ),
        11 => 
        array (
          'name' => 'Word of mouth',
          'value' => 'Word of mouth',
        ),
        12 => 
        array (
          'name' => 'Email',
          'value' => 'Email',
        ),
        13 => 
        array (
          'name' => 'Campaign',
          'value' => 'Campaign',
        ),
        14 => 
        array (
          'name' => 'Other',
          'value' => 'Other',
        ),
      ),
    ),
    37 => 
    array (
      'name' => 'account_name',
      'type' => 'relate',
      'label' => 'Account Name:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    38 => 
    array (
      'name' => 'account_id',
      'type' => 'relate',
      'label' => 'Account ID:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    39 => 
    array (
      'name' => 'opportunity_role_fields',
      'type' => 'relate',
      'label' => 'Account Name:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    40 => 
    array (
      'name' => 'reports_to_id',
      'type' => 'id',
      'label' => 'Reports to ID:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    41 => 
    array (
      'name' => 'report_to_name',
      'type' => 'relate',
      'label' => 'Reports To:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    42 => 
    array (
      'name' => 'birthdate',
      'type' => 'date',
      'label' => 'Birthdate:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    43 => 
    array (
      'name' => 'portal_name',
      'type' => 'varchar',
      'label' => 'Portal Name:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    44 => 
    array (
      'name' => 'portal_active',
      'type' => 'bool',
      'label' => 'Portal Active:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    45 => 
    array (
      'name' => 'portal_app',
      'type' => 'varchar',
      'label' => 'Portal Application:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    46 => 
    array (
      'name' => 'campaign_id',
      'type' => 'id',
      'label' => 'Campaign ID',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    47 => 
    array (
      'name' => 'campaign_name',
      'type' => 'relate',
      'label' => 'Campaign:',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    48 => 
    array (
      'name' => 'c_accept_status_fields',
      'type' => 'relate',
      'label' => 'Accept Status',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
    49 => 
    array (
      'name' => 'm_accept_status_fields',
      'type' => 'relate',
      'label' => 'Accept Status',
      'required' => 0,
      'options' => 
      array (
      ),
    ),
  ),
  'error' => '',
)