Elead REST Service

eLeads can pushed into improveit! 360 by using our simple REST service. The service currently only supports pushing new eLeads to the system. eLeads cannot be retrieved, updated, or deleted.

Endpoint Setup

  1. Login as the Administrator
  2. Go to Setup | Develop | Sites
  3. If there are no Sites listed, you will have to choose a domain. If there is already a site set up, skip to Step 8.
    • As a best practice, use your full company name as a run on word. For example, 'Image Landscaping' becomes 'imagelandscaping'.
    • Double check the spelling because you can't undo this once you click 'Register'!
    • Accept the terms and click 'Register My Force.com Domain'.
  4. Now that the domain is set up, click 'New' in the 'Sites' area. If a domain was already set up then you will start here.
  5. Leave the 'Type of new Site' as 'Guest' and click Continue.
  6. Fill in the form with the following values:
    • Site Label: PublicSite (This can be anything really.)
    • Site Name: PublicSite
    • Active Site Home Page : InMaintenance (This can be anything really.)
    • Leave all other fields blank
  7. Click Save
  8. Activate the site, if not active.
  9. Click the link under the Site Label column
  10. On the Site Details screen, click Public Access Settings
  11. Scroll down to 'Enabled Apex Class Access' and click Edit
  12. Under 'Available Apex Classes' select i360.eLeadREST and click Add
  13. Click Save

Your endpoint URI will be https://*domainname*.secure.force.com/services/apexrest/i360/eLead. Replace *domainname* with the domain you picked in step 3. It can also be found in the Site's detail page.

You may use the following endpont for testing purposes:

https://dteng-12546a52479-developer-edition.na7.force.com/services/apexrest/i360/eLead

Usage

Do a POST or GET to the /services/apexrest/i360/eLead endpoint using the eLead fields to populate as query parameters. Check out the complete list of supported query parameters here.

Example

https://dteng-12546a52479-developer-edition.na7.force.com/services/apexrest/i360/eLead?FirstName=Jason&LastName=Hartfield&Phone1=(651)+399+5555&Phone1Type=Home&Source=REST+Example&SourceType=Testing&debug=true