POST /v2.1/Contacts

Adds a Contact

Request Information

Parameters

Name
description
Additional information
apiContact
The Contact to add
Define this parameter in the request body.

Request Body Format / Sample

A sample request body is shown below. However, many of the sample fields contain dummy values (e.g. "CONTACT_ID": 1). If you are unclear on the expected request data structure, you can find a list of the expected parameters at the bottom of this page.

If this is unclear, the best troubleshooting method is to create an object via the web application, populate it with representative data, and then fetch the object via the corresponding GET method so you can inspect its object graph manually.

{
  "CONTACT_ID": 1,
  "SALUTATION": "sample string 2",
  "FIRST_NAME": "sample string 3",
  "LAST_NAME": "sample string 4",
  "BACKGROUND": "sample string 5",
  "IMAGE_URL": "sample string 6",
  "DEFAULT_LINKED_ORGANISATION": 1,
  "OWNER_USER_ID": 7,
  "DATE_CREATED_UTC": "2017-05-25 17:49:54",
  "DATE_UPDATED_UTC": "2017-05-25 17:49:54",
  "VISIBLE_TO": "sample string 10",
  "VISIBLE_TEAM_ID": 1,
  "VISIBLE_USER_IDS": "sample string 11",
  "CUSTOMFIELDS": [
    {
      "CUSTOM_FIELD_ID": "sample string 1",
      "FIELD_VALUE": {}
    },
    {
      "CUSTOM_FIELD_ID": "sample string 1",
      "FIELD_VALUE": {}
    },
    {
      "CUSTOM_FIELD_ID": "sample string 1",
      "FIELD_VALUE": {}
    }
  ],
  "ADDRESSES": [
    {
      "ADDRESS_ID": 1,
      "ADDRESS_TYPE": "sample string 1",
      "STREET": "sample string 2",
      "CITY": "sample string 3",
      "STATE": "sample string 4",
      "POSTCODE": "sample string 5",
      "COUNTRY": "sample string 6"
    },
    {
      "ADDRESS_ID": 1,
      "ADDRESS_TYPE": "sample string 1",
      "STREET": "sample string 2",
      "CITY": "sample string 3",
      "STATE": "sample string 4",
      "POSTCODE": "sample string 5",
      "COUNTRY": "sample string 6"
    },
    {
      "ADDRESS_ID": 1,
      "ADDRESS_TYPE": "sample string 1",
      "STREET": "sample string 2",
      "CITY": "sample string 3",
      "STATE": "sample string 4",
      "POSTCODE": "sample string 5",
      "COUNTRY": "sample string 6"
    }
  ],
  "CONTACTINFOS": [
    {
      "CONTACT_INFO_ID": 1,
      "TYPE": "sample string 1",
      "SUBTYPE": "sample string 2",
      "LABEL": "sample string 3",
      "DETAIL": "sample string 4"
    },
    {
      "CONTACT_INFO_ID": 1,
      "TYPE": "sample string 1",
      "SUBTYPE": "sample string 2",
      "LABEL": "sample string 3",
      "DETAIL": "sample string 4"
    },
    {
      "CONTACT_INFO_ID": 1,
      "TYPE": "sample string 1",
      "SUBTYPE": "sample string 2",
      "LABEL": "sample string 3",
      "DETAIL": "sample string 4"
    }
  ],
  "DATES": [
    {
      "DATE_ID": 1,
      "OCCASION_NAME": "sample string 1",
      "OCCASION_DATE": "2017-05-25 17:49:54",
      "REPEAT_YEARLY": true,
      "CREATE_TASK_YEARLY": true
    },
    {
      "DATE_ID": 1,
      "OCCASION_NAME": "sample string 1",
      "OCCASION_DATE": "2017-05-25 17:49:54",
      "REPEAT_YEARLY": true,
      "CREATE_TASK_YEARLY": true
    },
    {
      "DATE_ID": 1,
      "OCCASION_NAME": "sample string 1",
      "OCCASION_DATE": "2017-05-25 17:49:54",
      "REPEAT_YEARLY": true,
      "CREATE_TASK_YEARLY": true
    }
  ],
  "TAGS": [
    {
      "TAG_NAME": "sample string 1"
    },
    {
      "TAG_NAME": "sample string 1"
    },
    {
      "TAG_NAME": "sample string 1"
    }
  ],
  "LINKS": [
    {
      "LINK_ID": 1,
      "CONTACT_ID": 1,
      "OPPORTUNITY_ID": 1,
      "ORGANISATION_ID": 1,
      "PROJECT_ID": 1,
      "SECOND_PROJECT_ID": 1,
      "SECOND_OPPORTUNITY_ID": 1,
      "ROLE": "sample string 1",
      "DETAILS": "sample string 2"
    },
    {
      "LINK_ID": 1,
      "CONTACT_ID": 1,
      "OPPORTUNITY_ID": 1,
      "ORGANISATION_ID": 1,
      "PROJECT_ID": 1,
      "SECOND_PROJECT_ID": 1,
      "SECOND_OPPORTUNITY_ID": 1,
      "ROLE": "sample string 1",
      "DETAILS": "sample string 2"
    },
    {
      "LINK_ID": 1,
      "CONTACT_ID": 1,
      "OPPORTUNITY_ID": 1,
      "ORGANISATION_ID": 1,
      "PROJECT_ID": 1,
      "SECOND_PROJECT_ID": 1,
      "SECOND_OPPORTUNITY_ID": 1,
      "ROLE": "sample string 1",
      "DETAILS": "sample string 2"
    }
  ],
  "CONTACTLINKS": [
    {
      "CONTACT_LINK_ID": 1,
      "FIRST_CONTACT_ID": 1,
      "SECOND_CONTACT_ID": 2,
      "RELATIONSHIP_ID": 3,
      "DETAILS": "sample string 4"
    },
    {
      "CONTACT_LINK_ID": 1,
      "FIRST_CONTACT_ID": 1,
      "SECOND_CONTACT_ID": 2,
      "RELATIONSHIP_ID": 3,
      "DETAILS": "sample string 4"
    },
    {
      "CONTACT_LINK_ID": 1,
      "FIRST_CONTACT_ID": 1,
      "SECOND_CONTACT_ID": 2,
      "RELATIONSHIP_ID": 3,
      "DETAILS": "sample string 4"
    }
  ],
  "EMAILLINKS": [
    {
      "EMAIL_LINK_ID": 1,
      "EMAIL_ID": 2,
      "CONTACT_ID": 1,
      "ORGANISATION_ID": 1,
      "OPPORTUNITY_ID": 1,
      "PROJECT_ID": 1,
      "LEAD_ID": 1
    },
    {
      "EMAIL_LINK_ID": 1,
      "EMAIL_ID": 2,
      "CONTACT_ID": 1,
      "ORGANISATION_ID": 1,
      "OPPORTUNITY_ID": 1,
      "PROJECT_ID": 1,
      "LEAD_ID": 1
    },
    {
      "EMAIL_LINK_ID": 1,
      "EMAIL_ID": 2,
      "CONTACT_ID": 1,
      "ORGANISATION_ID": 1,
      "OPPORTUNITY_ID": 1,
      "PROJECT_ID": 1,
      "LEAD_ID": 1
    }
  ]
}
<Contact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Insightly.API">
  <ADDRESSES>
    <Address>
      <ADDRESS_ID>1</ADDRESS_ID>
      <ADDRESS_TYPE>sample string 1</ADDRESS_TYPE>
      <CITY>sample string 3</CITY>
      <COUNTRY>sample string 6</COUNTRY>
      <POSTCODE>sample string 5</POSTCODE>
      <STATE>sample string 4</STATE>
      <STREET>sample string 2</STREET>
    </Address>
    <Address>
      <ADDRESS_ID>1</ADDRESS_ID>
      <ADDRESS_TYPE>sample string 1</ADDRESS_TYPE>
      <CITY>sample string 3</CITY>
      <COUNTRY>sample string 6</COUNTRY>
      <POSTCODE>sample string 5</POSTCODE>
      <STATE>sample string 4</STATE>
      <STREET>sample string 2</STREET>
    </Address>
    <Address>
      <ADDRESS_ID>1</ADDRESS_ID>
      <ADDRESS_TYPE>sample string 1</ADDRESS_TYPE>
      <CITY>sample string 3</CITY>
      <COUNTRY>sample string 6</COUNTRY>
      <POSTCODE>sample string 5</POSTCODE>
      <STATE>sample string 4</STATE>
      <STREET>sample string 2</STREET>
    </Address>
  </ADDRESSES>
  <BACKGROUND>sample string 5</BACKGROUND>
  <CONTACTINFOS>
    <ContactInfo>
      <CONTACT_INFO_ID>1</CONTACT_INFO_ID>
      <DETAIL>sample string 4</DETAIL>
      <LABEL>sample string 3</LABEL>
      <SUBTYPE>sample string 2</SUBTYPE>
      <TYPE>sample string 1</TYPE>
    </ContactInfo>
    <ContactInfo>
      <CONTACT_INFO_ID>1</CONTACT_INFO_ID>
      <DETAIL>sample string 4</DETAIL>
      <LABEL>sample string 3</LABEL>
      <SUBTYPE>sample string 2</SUBTYPE>
      <TYPE>sample string 1</TYPE>
    </ContactInfo>
    <ContactInfo>
      <CONTACT_INFO_ID>1</CONTACT_INFO_ID>
      <DETAIL>sample string 4</DETAIL>
      <LABEL>sample string 3</LABEL>
      <SUBTYPE>sample string 2</SUBTYPE>
      <TYPE>sample string 1</TYPE>
    </ContactInfo>
  </CONTACTINFOS>
  <CONTACTLINKS>
    <ContactLink>
      <CONTACT_LINK_ID>1</CONTACT_LINK_ID>
      <DETAILS>sample string 4</DETAILS>
      <FIRST_CONTACT_ID>1</FIRST_CONTACT_ID>
      <RELATIONSHIP_ID>3</RELATIONSHIP_ID>
      <SECOND_CONTACT_ID>2</SECOND_CONTACT_ID>
    </ContactLink>
    <ContactLink>
      <CONTACT_LINK_ID>1</CONTACT_LINK_ID>
      <DETAILS>sample string 4</DETAILS>
      <FIRST_CONTACT_ID>1</FIRST_CONTACT_ID>
      <RELATIONSHIP_ID>3</RELATIONSHIP_ID>
      <SECOND_CONTACT_ID>2</SECOND_CONTACT_ID>
    </ContactLink>
    <ContactLink>
      <CONTACT_LINK_ID>1</CONTACT_LINK_ID>
      <DETAILS>sample string 4</DETAILS>
      <FIRST_CONTACT_ID>1</FIRST_CONTACT_ID>
      <RELATIONSHIP_ID>3</RELATIONSHIP_ID>
      <SECOND_CONTACT_ID>2</SECOND_CONTACT_ID>
    </ContactLink>
  </CONTACTLINKS>
  <CONTACT_ID>1</CONTACT_ID>
  <CUSTOMFIELDS xmlns:d2p1="http://schemas.datacontract.org/2004/07/Insightly.App.Api.Areas.v21.Models">
    <d2p1:APICustomField>
      <d2p1:CUSTOM_FIELD_ID>sample string 1</d2p1:CUSTOM_FIELD_ID>
      <d2p1:FIELD_VALUE />
    </d2p1:APICustomField>
    <d2p1:APICustomField>
      <d2p1:CUSTOM_FIELD_ID>sample string 1</d2p1:CUSTOM_FIELD_ID>
      <d2p1:FIELD_VALUE />
    </d2p1:APICustomField>
    <d2p1:APICustomField>
      <d2p1:CUSTOM_FIELD_ID>sample string 1</d2p1:CUSTOM_FIELD_ID>
      <d2p1:FIELD_VALUE />
    </d2p1:APICustomField>
  </CUSTOMFIELDS>
  <DATES>
    <ContactDate>
      <CREATE_TASK_YEARLY>true</CREATE_TASK_YEARLY>
      <DATE_ID>1</DATE_ID>
      <OCCASION_DATE>2017-05-25T17:49:54.4141108-07:00</OCCASION_DATE>
      <OCCASION_NAME>sample string 1</OCCASION_NAME>
      <REPEAT_YEARLY>true</REPEAT_YEARLY>
    </ContactDate>
    <ContactDate>
      <CREATE_TASK_YEARLY>true</CREATE_TASK_YEARLY>
      <DATE_ID>1</DATE_ID>
      <OCCASION_DATE>2017-05-25T17:49:54.4141108-07:00</OCCASION_DATE>
      <OCCASION_NAME>sample string 1</OCCASION_NAME>
      <REPEAT_YEARLY>true</REPEAT_YEARLY>
    </ContactDate>
    <ContactDate>
      <CREATE_TASK_YEARLY>true</CREATE_TASK_YEARLY>
      <DATE_ID>1</DATE_ID>
      <OCCASION_DATE>2017-05-25T17:49:54.4141108-07:00</OCCASION_DATE>
      <OCCASION_NAME>sample string 1</OCCASION_NAME>
      <REPEAT_YEARLY>true</REPEAT_YEARLY>
    </ContactDate>
  </DATES>
  <DATE_CREATED_UTC>2017-05-25T17:49:54.4141108-07:00</DATE_CREATED_UTC>
  <DATE_UPDATED_UTC>2017-05-25T17:49:54.4141108-07:00</DATE_UPDATED_UTC>
  <DEFAULT_LINKED_ORGANISATION>1</DEFAULT_LINKED_ORGANISATION>
  <EMAILLINKS>
    <EmailLink>
      <CONTACT_ID>1</CONTACT_ID>
      <EMAIL_ID>2</EMAIL_ID>
      <EMAIL_LINK_ID>1</EMAIL_LINK_ID>
      <LEAD_ID>1</LEAD_ID>
      <OPPORTUNITY_ID>1</OPPORTUNITY_ID>
      <ORGANISATION_ID>1</ORGANISATION_ID>
      <PROJECT_ID>1</PROJECT_ID>
    </EmailLink>
    <EmailLink>
      <CONTACT_ID>1</CONTACT_ID>
      <EMAIL_ID>2</EMAIL_ID>
      <EMAIL_LINK_ID>1</EMAIL_LINK_ID>
      <LEAD_ID>1</LEAD_ID>
      <OPPORTUNITY_ID>1</OPPORTUNITY_ID>
      <ORGANISATION_ID>1</ORGANISATION_ID>
      <PROJECT_ID>1</PROJECT_ID>
    </EmailLink>
    <EmailLink>
      <CONTACT_ID>1</CONTACT_ID>
      <EMAIL_ID>2</EMAIL_ID>
      <EMAIL_LINK_ID>1</EMAIL_LINK_ID>
      <LEAD_ID>1</LEAD_ID>
      <OPPORTUNITY_ID>1</OPPORTUNITY_ID>
      <ORGANISATION_ID>1</ORGANISATION_ID>
      <PROJECT_ID>1</PROJECT_ID>
    </EmailLink>
  </EMAILLINKS>
  <FIRST_NAME>sample string 3</FIRST_NAME>
  <IMAGE_URL>sample string 6</IMAGE_URL>
  <LAST_NAME>sample string 4</LAST_NAME>
  <LINKS>
    <Link>
      <CONTACT_ID>1</CONTACT_ID>
      <DETAILS>sample string 2</DETAILS>
      <LINK_ID>1</LINK_ID>
      <OPPORTUNITY_ID>1</OPPORTUNITY_ID>
      <ORGANISATION_ID>1</ORGANISATION_ID>
      <PROJECT_ID>1</PROJECT_ID>
      <ROLE>sample string 1</ROLE>
      <SECOND_OPPORTUNITY_ID>1</SECOND_OPPORTUNITY_ID>
      <SECOND_PROJECT_ID>1</SECOND_PROJECT_ID>
    </Link>
    <Link>
      <CONTACT_ID>1</CONTACT_ID>
      <DETAILS>sample string 2</DETAILS>
      <LINK_ID>1</LINK_ID>
      <OPPORTUNITY_ID>1</OPPORTUNITY_ID>
      <ORGANISATION_ID>1</ORGANISATION_ID>
      <PROJECT_ID>1</PROJECT_ID>
      <ROLE>sample string 1</ROLE>
      <SECOND_OPPORTUNITY_ID>1</SECOND_OPPORTUNITY_ID>
      <SECOND_PROJECT_ID>1</SECOND_PROJECT_ID>
    </Link>
    <Link>
      <CONTACT_ID>1</CONTACT_ID>
      <DETAILS>sample string 2</DETAILS>
      <LINK_ID>1</LINK_ID>
      <OPPORTUNITY_ID>1</OPPORTUNITY_ID>
      <ORGANISATION_ID>1</ORGANISATION_ID>
      <PROJECT_ID>1</PROJECT_ID>
      <ROLE>sample string 1</ROLE>
      <SECOND_OPPORTUNITY_ID>1</SECOND_OPPORTUNITY_ID>
      <SECOND_PROJECT_ID>1</SECOND_PROJECT_ID>
    </Link>
  </LINKS>
  <OWNER_USER_ID>7</OWNER_USER_ID>
  <SALUTATION>sample string 2</SALUTATION>
  <TAGS>
    <Tag>
      <TAG_NAME>sample string 1</TAG_NAME>
    </Tag>
    <Tag>
      <TAG_NAME>sample string 1</TAG_NAME>
    </Tag>
    <Tag>
      <TAG_NAME>sample string 1</TAG_NAME>
    </Tag>
  </TAGS>
  <VISIBLE_TEAM_ID>1</VISIBLE_TEAM_ID>
  <VISIBLE_TO>sample string 10</VISIBLE_TO>
  <VISIBLE_USER_IDS>sample string 11</VISIBLE_USER_IDS>
</Contact>

Response Information

Returns

201 if Contact is added, and the Contact record

Errors

400 if the Insert fails or CONTACTINFOS contains a SOCIAL type, 402 if record limit reached

Type Descriptions

Contact

Field Name
Details
CONTACT_ID
Integer
Unique key of the Contact record.
SALUTATION
String
Maximum length is 50 characters.
Salutation (Mr/Mrs/etc).
FIRST_NAME
String
Maximum length is 255 characters.
First/Given Name.
LAST_NAME
String
Maximum length is 255 characters.
Last/Family/Surname of the Contact.
BACKGROUND
String
Maximum length is 4000 characters.
Additional background information (notes, bio etc).
IMAGE_URL
String
Maximum length is 255 characters.
Url of the Image for the Contact. Use the 'contacts/:id/image' endpoint to change the image.
DEFAULT_LINKED_ORGANISATION
Integer
Select an organization defined in the Links field to be marked as default. If empty, or is not included in Links, or is not a valid ORGANISATION_ID, the first organization link will be set as default.
OWNER_USER_ID
Integer
User ID of the Contact Owner.
DATE_CREATED_UTC
DateTime
Date and time Contact record created, as Coordinated Universal Time.
DATE_UPDATED_UTC
DateTime
Date and time Contact record updated, as Coordinated Universal Time (read only, automatically generated by server)
VISIBLE_TO
String
This field can have one of the following values: 'Everyone' (Default), 'Owner', 'Team', or 'Individuals'.
VISIBLE_TEAM_ID
Integer
If VISIBLE_TO is 'Team', then this should be a Team ID, which must be a valid TEAM_ID record locator.
VISIBLE_USER_IDS
String
If VISIBLE_TO is 'Individuals', then this should be a comma-separated list of User IDs. This field is always empty in the response. Upon successful POST or PUT an anonymous team is created from the list of IDs, and the response will contain a VISIBLE_TEAM_ID.
CUSTOMFIELDS
Insightly.App.Api.Areas.v21.Models.APICustomField
Set of Custom Fields attached to the Contact.
ADDRESSES
Insightly.App.Api.Areas.v21.Models.APIAddress
Set of Addresses attached to the Contact. Limited to two addresses, one Mailing Address and one Other Address.
CONTACTINFOS
Insightly.App.Api.Areas.v21.Models.APIContactInfo
Set of Contact Infos attached to the Contact. Limited to six Phone Numbers and one Email Address.
DATES
Insightly.App.Api.Areas.v21.Models.APIContactDate
Set of Dates to Remember attached to the Contact.
TAGS
Insightly.App.Api.Areas.v21.Models.APITag
Set of Tags attached to the Contact.
LINKS
Insightly.App.Api.Areas.v21.Models.APILink
Set of Links attached to the Contact.
CONTACTLINKS
Insightly.App.Api.Areas.v21.Models.APIContactLink
Set of Links to other Contacts attached to the Contact.
EMAILLINKS
Insightly.App.Api.Areas.v21.Models.APIEmailLink
Set of Email Links attached to the Contact.

Address

Field Name
Details
ADDRESS_ID
Integer
Unique key of the Address record.
ADDRESS_TYPE
String
Is Required
ADDRESS_TYPE must be one of the following values: 'Postal', 'Work', 'Primary', 'Home' or 'Other'. 'Postal', 'Work' and 'Primary' map to the Mailing Address and 'Home' and 'Other' map to the Other Address.
STREET
String
Maximum length is 255 characters.
Street Number and Name of Address.
CITY
String
Maximum length is 255 characters.
City.
STATE
String
Maximum length is 255 characters.
State/Province.
POSTCODE
String
Maximum length is 128 characters.
Zip or Postal Code.
COUNTRY
String
Maximum length is 255 characters.
Country. See Countries Resource for options.

ContactInfo

Field Name
Details
CONTACT_INFO_ID
Integer
Unique key of the Contact Info record.
TYPE
String
Is Required
TYPE must be one of the following values: 'Phone' or 'Email'.
SUBTYPE
String
Maximum length is 50 characters.
LABEL
String
If TYPE is 'Phone', LABEL can be one of the following values: 'Work', 'Mobile', 'Fax', 'Assistant', 'Home' or 'Other'. If TYPE is 'Email', LABEL can be one of the following values: 'Work', 'Personal', 'Home' or 'Other'. Limited to one Email Address.
DETAIL
String
Is Required
Maximum length is 255 characters.
The Detail of the Contact Info -- e.g., phone number, email address, etc.

ContactDate

Field Name
Details
DATE_ID
Integer
Unique key of the Contact Date record.
OCCASION_NAME
String
Maximum length is 255 characters.
Occasion Name of the Contact Date -- e.g., Birthday, Hire Date, Initial Meeting, etc.
OCCASION_DATE
[DateTime
Occasion Date of the Contact Date, in YYYY-MM-DD HH:MM:SS format
REPEAT_YEARLY
Boolean
True if Occasion occurs each year.
CREATE_TASK_YEARLY
Boolean
True to create a reminder each year.

Tag

Field Name
Details
TAG_NAME
String
Maximum length is 255 characters.
A Tag Name added to a Contact, Organisation, Opportunity, or Project.

Link

Field Name
Details
LINK_ID
Integer
Unique key of the Link record.
CONTACT_ID
Integer
Unique key of a Contact on one side of the relationship, must be a CONTACT_ID.
OPPORTUNITY_ID
Integer
Unique key of a Opportunity on one side of the relationship, must be a valid OPPORTUNITY_ID.
ORGANISATION_ID
Integer
Unique key of a Organisation on one side of the relationship, must be a valid OPPORTUNITY_ID.
PROJECT_ID
Integer
Unique key of a Project on one side of the relationship, must be a valid PROJECT_ID.
SECOND_PROJECT_ID
Integer
Unique key of a second Project on one side of the relationship (for Project to Project links).
SECOND_OPPORTUNITY_ID
Integer
Unique key of a second Opportunity on one side of the relationship (for Opportunity to Opportunity links).
ROLE
String
Maximum length is 255 characters.
Description of the relationship between the linked objects.
DETAILS
String
Maximum length is 255 characters.
Details of the Link.

ContactLink

Field Name
Details
CONTACT_LINK_ID
Integer
Unique key of the Contact Link record.
FIRST_CONTACT_ID
Integer
Unique key of a Contact on one side of the relationship, must be a valid CONTACT_ID, otherwise returns 400 error.
SECOND_CONTACT_ID
Integer
Unique key of a Contact on the other side of the relationship, must be a valid CONTACT_ID, otherwise returns 400 error.
RELATIONSHIP_ID
Integer
Unique key of the Relationship from First Contact to Second Contact. See Relationships Resource for options. Must be a valid RELATIONSHIP_ID.
DETAILS
String
Maximum length is 255 characters.
Description of the Relationship.

EmailLink

Field Name
Details
EMAIL_LINK_ID
Integer
Unique key of the Email Link record.
EMAIL_ID
Integer
Unique key of the Email record being linked.
CONTACT_ID
Integer
Unique key of a Contact linked to the Email, if in use must be a valid CONTACT_ID.
ORGANISATION_ID
Integer
Unique key of an Organisation linked to the Email, if in use must be a valid ORGANISATION_ID.
OPPORTUNITY_ID
Integer
Unique key of an Opportunity linked to the Email, if in use must be a valid OPPORTUNITY_ID.
PROJECT_ID
Integer
Unique key of a Project linked to the Email, if in use must be a valid PROJECT_ID.
LEAD_ID
Integer
Unique key of a Lead linked to the Email, if in use must be a valid LEAD_ID.