Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- .NET Development
- :
- Unable to capture the First Name from Web To LEAD ...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Unable to capture the First Name from Web To LEAD in a .Net code.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-18-2012 06:25 PM
Hi there,
Using a standard Web to Lead form, we are unable to capture the First Name into the SFDC. When the user enters the Name, he first enter First Name and then Last Name. The Last Name comes into the SFDC but the First Name does not come.
Not sure, why is this happening and what we need to change in the code below to get the First Name. This has never happened before. Please help.:-
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
post.Url = "https://www.salesforce.com/servlet/servlet.WebToLe
post.PostItems.Add("first_name", query.ElementAt(i).FirstName);
post.PostItems.Add("last_name",query.ElementAt(i).
post.PostItems.Add("phone", query.ElementAt(i).Phone);
post.PostItems.Add("email", query.ElementAt(i).EmailID);
post.PostItems.Add("Lead_Type__c", usertype);
post.PostItems.Add("company", query.ElementAt(i).Company);
post.PostItems.Add("title", query.ElementAt(i).JobTitle); // Added
post.PostItems.Add("Address", query.ElementAt(i).Address); // Added
post.PostItems.Add("oid", "00D00000000hbaA");
//Lead source
post.PostItems.Add("lead_source", "Sunshine Web Site");
// Lead Recoard Type
// "012000000008Qyk"= New Sales Lead Record Type
post.PostItems.Add("recordType", "012000000008Qyk");
// Web to Lead Form
post.PostItems.Add("00N00000008aJ
string result = post.Post();
////////////////////////////////////////////
Thanks for you help.

