Web Form Post API (Contacts)

This application programming interface describes the html markup for a valid form post transmission to the EngageCRM system. You must have a valid account in good standing to use this API.

Related Resources: How do I create a company record? | How do I create a lead record?

Caution: Do not attempt to use this API if you are not familiar with HTML and have not been properly trained by a EngageCRM representative. If you misuse this API, your account may be locked and fees may apply.

Form Attribute Table
Form Attribute Value
Action https://post.engagecrm.ai/wcmpost.aspx
Test Action https://post.engagecrm.ai/apipostcheck.aspx
Method Post

Note: The Request ID below refers to the variables within the post that the API expects and will process accordingly.

Important: The following fields are mandatory and should be added to your page as hidden fields.

Request ID Table
Request ID Example Contact Field/Mapping Notes
LinkCode This is the code that identifies which Web Form to post data against.
Mandatory Hidden Field
RedirectURL http://www.yourcompany.com This is the URL that will be used to redirect the browser once the form has been submitted.
Mandatory Hidden Field
txtContactSettings 1 Mandatory Hidden Field
0 = Duplicate Check (Default Action)
Performs a duplicate check using the txtEmail, txtEmail2, and txtEmail3 fields.
a) If a duplicate contact is detected, that contact will be updated.
(Note: see txtContactOverWrite for rules on how data will be populated in duplicate contact.)
b) If no duplicate contact is found, a new contact will be created.
(Note: see txtContactOverWrite for rules on how data will be populated in new contact.)
c) If txtPhone should be used to find duplicates, include txtCheckDupByPhone with a value of "1".

1 = Always Create New Contact
Creates a new contact.
(Note: see txtContactOverWrite for rules on how data will be populated in new contact.)

2 = Duplicate Check (Override Security Settings)
Performs the same duplicate check as (0) except your company's security settings are ignored. By default, the security model in place for your account will govern how the API searches your database to determine duplicates. By using this variable, you can instruct the API to ignore your security model and search your company’s entire database. This is especially helpful when one web form will be shared by all users (i.e. Unsubscribe form).
txtContactOverWrite 1 Mandatory Hidden Field
0 = Only Overwrite if Blank (Default Action)
All data fields present in post will populate their respective contact fields within Engage CRM only if the field is blank or empty.

1 = Always Overwrite
All data fields present in post will populate their respective contact fields within Engage CRM.

2 = Ignore
All data fields present in post will be ignored.

3 = Always Overwrite (unless form field is empty)
All NON-EMPTY data fields present in post will populate their respective contact fields within Engage CRM.

All of the following fields are optional.

SalesOptima API Table
Request ID Example Contact Field/Mapping Notes
txtContactID1406044System Contact ID
Used For Duplicate Detection
txtFirstNameJoeFirst Name
txtLastNameSampleLast Name
txtSalutationMr.Salutation
txtTitleSales ManagerTitle
txtCompanyNameSample CorpCompany (Company Module Settings Addendum - How do I create a company record?)
txtAdd1123 Sample DriveAddress 1
txtAdd2Suite 1500Address 2
txtAdd3Attention: JoeAddress 3
txtCitySamplesVilleCity
txtStateILState
txtZip62154Zip
txtCountryUSACountry
txtCustom1PO Box 5433Custom Text Field 1
txtCustom2Custom Text Field 2
txtCustom3Custom Text Field 3
txtCustom4SamplevilleCustom Text Field 4
txtCustom5ILCustom Text Field 5
txtCustom664125-5433Custom Text Field 6
txtCustom7USACustom Text Field 7
txtCustom82 bedroomCustom Text Field 8
txtCustom92 bathroomCustom Text Field 9
txtCheck1TRUECustom Checkbox 1
True/False or 1/0
txtCheck2FALSECustom Checkbox 2
True/False or 1/0
txtPhone1235551212Business Phone
txtCheckDupByPhone1If txtPhone should be used to find duplicates, include txtCheckDupByPhone with a value of "1".
txtHomePhone1235551213Home Phone
txtMobile1235551214Mobile
txtOtherPhone1235551215Other Phone
txtFax1235551216Fax
txtOtherFax1235551217Other Fax
txtEmailjoe@samplecorp.comPrimary Email
Used For Duplicate Detection
txtEmail2joe@hotmail.comEmail 2
txtEmail3joe@gmail.comEmail 3
txtWebSitewww.samplecorp.comWebSite
txtCommentsTitleAdditional Information:Prefix to Comments
txtCommentsI love bunnies.Comments
txtCommentsAppendI also love rabbits.Appends to Comments field

The following multiple fields will be compiled into a single Comments field entry. Each title/note combination must have a number associated with it between 1 and 10.

Multi Comments Table
Request ID Example Contact Field/Mapping Notes
txtMultiComments1Title First Milestone Question/Comment attached to txtMultiComments1, usually a hidden field
txtMultiComments1 Delivered by Frank Smith User Feedback to the Question/Comment above.
txtMultiComments2Title Project Requirements Question/Comment attached to txtMultiComments2, usually a hidden field
txtMultiComments2 Contract signed. Awaiting payment. User Feedback to the Question/Comment above.
txtMultiComments3Title How did you hear about us? Question/Comment attached to txtMultiComments3, usually a hidden field
txtMultiComments3 Internet User Feedback to the Question/Comment above.

The following Note fields will be compiled into a single contact history entry. Each title/note combination must have a number associated with it between 1 and 100. Use with caution: The amount of data gathered can grow very quickly for each contact because usually these are textarea fields.

Notes Table
Request ID Example Contact Field/Mapping Notes
txtNoteTypeCode 1234 Note Type Dropdown
must be a valid Note Type code
txtNote1Title What is your favorite color? Question/Comment attached to txtNote1, usually a hidden field
txtNote1 Red User Feedback to the Question/Comment above.
txtNote2Title What is your favorite animal? Question/Comment attached to txtNote2, usually a hidden field
txtNote2 I told you already, bunnies. User Feedback to the Question/Comment above.
txtNote3Title How did you hear about us? Question/Comment attached to txtNote3, usually a hidden field
txtNote3 Internet User Feedback to the Question/Comment above.
txtNote4Title What product are you interested in? Question/Comment attached to txtNote4, usually a hidden field
txtNote4 Widget 1000 LS User Feedback to the Question/Comment above.
txtNote5Title Are you the one with the cash? Question/Comment attached to txtNote5, usually a hidden field
txtNote5 No, I'm research on behalf of my boss. User Feedback to the Question/Comment above.

The following Link fields will be appended to into a single contact history entry. Each title/link combination must have a number associated with it between 1 and 10. Use with caution: The amount of data gathered can grow very quickly for each contact.

Links Table
Request ID Example Contact Field/Mapping Notes
txtLink1Title What is your favorite CRM? Question/Comment attached to txtLink1, usually a hidden field
txtLink1 http://www.engagecrm.ai/ Fully qualified URL link
txtLink2Title Where do you get your news? Question/Comment attached to txtLink2, usually a hidden field
txtLink2 http://www.msn.com Fully qualified URL link

The following classification fields correspond to the available customizable dropdowns up to 8.
See Step 1 of the CSV Upload Wizards for your account’s code mapping

Classification Table
Request ID Example Contact Field/Mapping Notes
txtClass1 5695 Classification 1 Dropdown
must be a valid Class1 code
txtClass2 8569 Classification 2 Dropdown
must be a valid Class2 code

The following fields correspond to more fields section of a contact.

Custom Date and Text Table
Request ID Example Contact Field/Mapping Notes
txtCustomDate1Title What is your anniversary? Question/Comment attached to txtCustomDate1, usually a hidden field
txtCustomDate1 10/3/1998 Fully qualified URL link
txtCustomDate2Title Annual financial review Question/Comment attached to txtCustomDate2, usually a hidden field
txtCustomDate2 7/5/2005 Fully qualified URL link
txtCustomDate3Title Annual financial review Custom Date 3 Title
txtCustomDate3 7/5/2005 Custom Date 3
must be a valid date
txtCustomText1 Amy Custom Text 1
txtCustomText2 4 kids Custom Text 2
txtCustomText3 and 1 bunny Custom Text 3

Misc fields

Opt-in and Compliance Table
Request ID Example Contact Field/Mapping Notes
txtAddTag Eagles fan If tag does not already exist, tag will be created
txtForceOwner VR90001 This is the User Code (found in User Profile) and is used to Set/Change Owner of Contact
txtReferralURL Google, Bing, etc. This is typically the first entry in a web site log for a unique visitor. Engage CRM will parse the URL into the contact record to store things like Referral Source, Keyword and any other present data.
txtTextMessageOptin TRUE Will Opt contact into Text Messaging via Webform post True/False or 1/0
txtEmailInfoSubscribe FALSE Will subscribe or unsubscribe email into or out of Informational Email Messaging via Webform post True/False or 1/0
(Note: txtEmail is required)
txtEmailInfoComplianceText By submitting my information, I consent to receive calls, text messages, and email from the company. The compliance text that appears on the landing page or web form.
txtEmailPromoSubscribe TRUE Will subscribe or unsubscribe email into or out of Promotional Email Messaging via Webform post True/False or 1/0
(Note: txtEmail is required)
txtEmailPromoComplianceText By submitting my information, I consent to receive calls, text messages, and email from the company. The compliance text that appears on the landing page or web form.