CLARIFY: If Forms is a REST API, why does it use SOAP names? | Community
Skip to main content
Robb_Barrett
New Participant
August 22, 2017
Solved

CLARIFY: If Forms is a REST API, why does it use SOAP names?

  • August 22, 2017
  • 2 replies
  • 2731 views

In using the form.vals function for external forms, I was under the impression that it would use the REST API field names since it's a REST API. To get the function to work correctly, the SOAP field names need to be used. This is doin' me a confuse...can someone clarify why a REST API would use SOAP naming?

Here's an example of working code:

form.vals({"Phone":"{{lead.Phone Number}}",

                 "FirstName":"{{lead.First Name}}",

                 "LastName":"{{lead.Last Name}}",

                 "Company":"{{company.Company Name}}",

                 "Email":"{{lead.Email Address}}",

                 "State":"{{lead.State}}",

                 "Title":"{{lead.Job Title}}",

                 "City":"{{lead.City}}",

                 "Address":"{{lead.Address}}",

                 "PostalCode":"{{lead.Postal Code}}"

                });

And here are the field names, as exported:

 

REST API NameSOAP API NameFriendly Label

firstNameFirstNameFirst Name

 

lastNameLastNameLast Name

 

companyCompanyCompany Name

 

emailEmailEmail Address

 

stateStateState

 

titleTitleJob Title

 

phonePhonePhone Number

(Etc)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

The client-side Forms API isn't a REST API.

2 replies

Employee
August 22, 2017

Here is a cheat sheet for which field name to use:

Where to Use Which Field Name Version

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
August 22, 2017

The client-side Forms API isn't a REST API.