• ServiceObjects
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
Attached is a C# snippet for sample code for validating email addresses within Sforce. This example gets email address information from Sforce and runs 10 tests on the email address. Email Validation provides fast and most accurate email address validation available and fully complies with Internet standards. Not only does DOTS for Email Validation fully recognize all forms of valid email addresses, but it can also verify the domain of the address and whether the user exists at that domain.

Email Validation performs the following escalating series of checks to verify an email address:

- Detect general format and syntax errors in email addresses
- Ensure addresses use a valid top level domain (e.g. .com, .net, .jp, .cc, etc.)
- Detect improper email address formats for common domains such as Hotmail and AOL
- Confirm that the email address has a valid DNS entry
- Confirm that the email address has a valid MX record
- Confirm that the domain can receive email (no message is actually sent)
- Confirm that the address can receive email (no message is actually sent)
- Determines whether the email address is provided for free (such as gmail, Hotmail, Yahoo...)
- Estimates whether the email address has been established twelve months or more.

All of these test can be performed in less that 1 second. Results for this example are written back to the description field within SForce.

Download sample code here:
http://www.serviceobjects.com/examples/salesforce/emailvalidation.zip

Web Site:
http://www.serviceobjects.com/products/

Happy Programming!

Attached is a C# snippet for sample code for validating, correcting, and standardizing US mailing addresses. This example gets lead address information from sforce, compares address to USPS tables, then (if needed) will update the address information. USPS address data is updated monthly.

 

ORIGINAL ADDRESS INFORMATION

Address: 1233 De La Gurra

City: Snta Brbra

State: Calif.

Zip: 93109

 

VALIDATED STREET ADDRESS RETURNED TO SALESFORCE LEAD

Address: 1233 E De La Guerra Rd

City: Santa Barbara

State: CA

Zip: 93103-2112

 

Download sample code here:
http://www.serviceobjects.com/examples/salesforce/addressvalidation.zip

Web Site:
http://www.serviceobjects.com/products/

 

 

 

We have created a C# example for appending latitude and longitude to a lead within Sforce through the Sforce API. This example uses our geocoder web service to lookup lat/lon information at the street level. The example runs as an external process now, Iâ¬?m sure someone will re-write it be called from within Sforce. 

Once you have the lat/lon information for each lead you can easily plot it with the Google Maps API. You can use the lat/lon data to map the distribution of leads in region. 

This is our first �contact� enhancement example for Sforce. We will attempt to build new examples for address validation, phone number validation, email validation, and more. Your feedback is welcome.

 We look forward to working with you all.

 Happy Programming,
Geoff Grow
geoff@serviceobjects.com

Download sample code for geocoding within SForce here.
https://www.serviceobjects.com/examples/salesforce/geocode.zip

 Our Web site:
http://www.serviceobjects.com/

I'm about 4 hours new to salesforce and need to create a script that inserts leads into a sf account. I found this thread that seems to have a pretty good bit of code that might do the trick, but I can't get the "Credco" namespace to be recognized.

In other words the line:

Credco.Web.SignUp.sforce.Lead sfLead = new Credco.Web.SignUp.sforce.Lead();

Results in this compiler error:

C:\Inetpub\wwwroot\SalesForce\WebForm1.aspx.cs(41): The type or namespace name 'Credco' could not be found (are you missing a using directive or an assembly reference?)

I've added the wsdl reference, but I can't find "Credco" anywhere within it. This is probably because Credco is something specific to that user? If so, can I customize the code to fit my needs, or could someone point me to a tutorial or a file within the sample package that demonstrates inserting leads rather than just displaying them? I noticed that Leads.aspx.cs in the asp .net sample package runs a Select query to get the leads data. I'm guessing I should run an Insert Into query to accomplish this?
Attached is a C# snippet for sample code for validating email addresses within Sforce. This example gets email address information from Sforce and runs 10 tests on the email address. Email Validation provides fast and most accurate email address validation available and fully complies with Internet standards. Not only does DOTS for Email Validation fully recognize all forms of valid email addresses, but it can also verify the domain of the address and whether the user exists at that domain.

Email Validation performs the following escalating series of checks to verify an email address:

- Detect general format and syntax errors in email addresses
- Ensure addresses use a valid top level domain (e.g. .com, .net, .jp, .cc, etc.)
- Detect improper email address formats for common domains such as Hotmail and AOL
- Confirm that the email address has a valid DNS entry
- Confirm that the email address has a valid MX record
- Confirm that the domain can receive email (no message is actually sent)
- Confirm that the address can receive email (no message is actually sent)
- Determines whether the email address is provided for free (such as gmail, Hotmail, Yahoo...)
- Estimates whether the email address has been established twelve months or more.

All of these test can be performed in less that 1 second. Results for this example are written back to the description field within SForce.

Download sample code here:
http://www.serviceobjects.com/examples/salesforce/emailvalidation.zip

Web Site:
http://www.serviceobjects.com/products/

Happy Programming!
I'm about 4 hours new to salesforce and need to create a script that inserts leads into a sf account. I found this thread that seems to have a pretty good bit of code that might do the trick, but I can't get the "Credco" namespace to be recognized.

In other words the line:

Credco.Web.SignUp.sforce.Lead sfLead = new Credco.Web.SignUp.sforce.Lead();

Results in this compiler error:

C:\Inetpub\wwwroot\SalesForce\WebForm1.aspx.cs(41): The type or namespace name 'Credco' could not be found (are you missing a using directive or an assembly reference?)

I've added the wsdl reference, but I can't find "Credco" anywhere within it. This is probably because Credco is something specific to that user? If so, can I customize the code to fit my needs, or could someone point me to a tutorial or a file within the sample package that demonstrates inserting leads rather than just displaying them? I noticed that Leads.aspx.cs in the asp .net sample package runs a Select query to get the leads data. I'm guessing I should run an Insert Into query to accomplish this?