
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 | 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 | 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.
Request ID | Example | Contact Field/Mapping Notes |
---|---|---|
txtContactID | 1406044 | System Contact ID Used For Duplicate Detection |
txtFirstName | Joe | First Name |
txtLastName | Sample | Last Name |
txtSalutation | Mr. | Salutation |
txtTitle | Sales Manager | Title |
txtCompanyName | Sample Corp | Company (Company Module Settings Addendum - How do I create a company record?) |
txtAdd1 | 123 Sample Drive | Address 1 |
txtAdd2 | Suite 1500 | Address 2 |
txtAdd3 | Attention: Joe | Address 3 |
txtCity | SamplesVille | City |
txtState | IL | State |
txtZip | 62154 | Zip |
txtCountry | USA | Country |
txtCustom1 | PO Box 5433 | Custom Text Field 1 |
txtCustom2 | Custom Text Field 2 | |
txtCustom3 | Custom Text Field 3 | |
txtCustom4 | Sampleville | Custom Text Field 4 |
txtCustom5 | IL | Custom Text Field 5 |
txtCustom6 | 64125-5433 | Custom Text Field 6 |
txtCustom7 | USA | Custom Text Field 7 |
txtCustom8 | 2 bedroom | Custom Text Field 8 |
txtCustom9 | 2 bathroom | Custom Text Field 9 |
txtCheck1 | TRUE | Custom Checkbox 1 True/False or 1/0 |
txtCheck2 | FALSE | Custom Checkbox 2 True/False or 1/0 |
txtPhone | 1235551212 | Business Phone |
txtCheckDupByPhone | 1 | If txtPhone should be used to find duplicates, include txtCheckDupByPhone with a value of "1". |
txtHomePhone | 1235551213 | Home Phone |
txtMobile | 1235551214 | Mobile |
txtOtherPhone | 1235551215 | Other Phone |
txtFax | 1235551216 | Fax |
txtOtherFax | 1235551217 | Other Fax |
txtEmail | joe@samplecorp.com | Primary Email Used For Duplicate Detection |
txtEmail2 | joe@hotmail.com | Email 2 |
txtEmail3 | joe@gmail.com | Email 3 |
txtWebSite | www.samplecorp.com | WebSite |
txtCommentsTitle | Additional Information: | Prefix to Comments |
txtComments | I love bunnies. | Comments |
txtCommentsAppend | I 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.
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.
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.
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
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.
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
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. |