You are here

README.txt in Salesforce Suite 7

SALESFORCE MODULE

This module utilizes Salesforce's Enterprise SOAP client and generic WSDL
functionality to allow you to work with custom fields without having to
download your own WSDL file.

It also includes an API architecture which allows for additional modules to
be easily plugged in (e.g. for webforms, contact form submits, etc).


REQUIREMENTS:

1) You need a salesforce account. Developers can register here:

http://www.developerforce.com/events/regular/registration.php

You will need to know your login data and your security token.

2) PHP needs the SOAP web services kit installed, as per:

http://php.net/soap


INSTALLATION:

1) Download, uncompress and situate the module as per usual.

2) Download the salesforce PHP toolkit version 13:

   http://wiki.apexdevnet.com/index.php/PHP_Toolkit

   Place the "soapclient" directory withinin the "toolkit" directory within the
   Drupal module's "salesforce_api directory". You should end up with something
   like: sites/all/modules/salesforce/salesforce_api/toolkit/soapclient

3) Enable the module on admin/build/modules along with at least one of the
   object modules (salesfoce_node, salesfoce_user). Node is the usual place to
   start.


UPDATING / REINSTALLING / ENABLING / DISABLING:

Since this module does not yet have a stable release, there is no upgrade path
neither between Drupal versions nor between dev versions. If you have previously
installed this module on your Drupal site and are upgrading, you need to do the
following to update the module.

0) ALWAYS backup your site's code and your database.

1) Disable salesforce_api, sf_node, and sf_user.

2) Remove the salesforce directory from the filesystem.

3) Drop any salesforce database tables (salesforce_object_map, salesforce_field_map, etc.)

4) Remove the entries in "system" database table for salesforce_api, sf_node, and sf_user
e.g. DELETE FROM system WHERE name IN ('salesforce_api', 'sf_node', 'sf_user').

5) Download or CVS checkout the latest version of salesforce module and re-enable.


QUICKSTART:

1) Visit admin/settings/salesforce and enter your login information in the
   "Salesforce API Settings" fieldset. Save that configuration.

2) Click on the "Fieldmaps" local task, and create a fieldmap between Drupal and
   Salesforce objects.

3) If you left the "automatic" box checked, the next time a Drupal object is
   created, it will create a corresponding object in Salesforce. Alternatively,
   you can click the "salesforce" tab on any node which you've established a
   mapping for and manually create a Salesforce object for it.


WORKING WITH WSDL FILES

Salesforce module will use a default .wsdl file
(salesforce_api/toolkit/soapclient/enterprise.wsdl.xml). Alternatively, you can
supply your own enterprise wsdl file by placing it in the salesforce_api/wsdl/
directory (salesforce_api/wsdl/enterprise.wsdl - no .xml at the end of the file
name).

When switching between wsdl files, keep in mind that PHP's SoapClient is caching
wsdl information. You can turn off caching of wsdl information by adding this
line to your settings.php:

ini_set('soap.wsdl_cache_enabled',  '0');

You can control the life time of your cache by adding this line to your
settings.php:

ini_set('soap.wsdl_cache_ttl',      '0');

For more information on SoapClient refer to http://php.net/manual/en/book.soap.php


REPORTING BUGS

Bug reports should adhere to Drupal standards.
Please review the issue queue at http://drupal.org/project/issues/salesforce before
creating a new issue.

Before creating a new issue, please:

* Use latest code from CVS on a *new* Drupal install
* Include the PHP error message
* Turn on "log all salesforce activity" and include any relevant watchdog errors
* Install a generated WSDL file and Clear your WSDL cache (see WORKING WITH WSDL FILES)
* Confirm php's SOAP support
* Confirm whether you were able to successfully:
  - Connect to Salesforce
  - Save credentials
  - Login to https://login.salesforce.com/ with those credentials
  - Load the test/demo page
  - Create a fieldmap
* Include system information, including operating system, php version, apache version

File

README.txt
View source
  1. SALESFORCE MODULE
  2. This module utilizes Salesforce's Enterprise SOAP client and generic WSDL
  3. functionality to allow you to work with custom fields without having to
  4. download your own WSDL file.
  5. It also includes an API architecture which allows for additional modules to
  6. be easily plugged in (e.g. for webforms, contact form submits, etc).
  7. REQUIREMENTS:
  8. 1) You need a salesforce account. Developers can register here:
  9. http://www.developerforce.com/events/regular/registration.php
  10. You will need to know your login data and your security token.
  11. 2) PHP needs the SOAP web services kit installed, as per:
  12. http://php.net/soap
  13. INSTALLATION:
  14. 1) Download, uncompress and situate the module as per usual.
  15. 2) Download the salesforce PHP toolkit version 13:
  16. http://wiki.apexdevnet.com/index.php/PHP_Toolkit
  17. Place the "soapclient" directory withinin the "toolkit" directory within the
  18. Drupal module's "salesforce_api directory". You should end up with something
  19. like: sites/all/modules/salesforce/salesforce_api/toolkit/soapclient
  20. 3) Enable the module on admin/build/modules along with at least one of the
  21. object modules (salesfoce_node, salesfoce_user). Node is the usual place to
  22. start.
  23. UPDATING / REINSTALLING / ENABLING / DISABLING:
  24. Since this module does not yet have a stable release, there is no upgrade path
  25. neither between Drupal versions nor between dev versions. If you have previously
  26. installed this module on your Drupal site and are upgrading, you need to do the
  27. following to update the module.
  28. 0) ALWAYS backup your site's code and your database.
  29. 1) Disable salesforce_api, sf_node, and sf_user.
  30. 2) Remove the salesforce directory from the filesystem.
  31. 3) Drop any salesforce database tables (salesforce_object_map, salesforce_field_map, etc.)
  32. 4) Remove the entries in "system" database table for salesforce_api, sf_node, and sf_user
  33. e.g. DELETE FROM system WHERE name IN ('salesforce_api', 'sf_node', 'sf_user').
  34. 5) Download or CVS checkout the latest version of salesforce module and re-enable.
  35. QUICKSTART:
  36. 1) Visit admin/settings/salesforce and enter your login information in the
  37. "Salesforce API Settings" fieldset. Save that configuration.
  38. 2) Click on the "Fieldmaps" local task, and create a fieldmap between Drupal and
  39. Salesforce objects.
  40. 3) If you left the "automatic" box checked, the next time a Drupal object is
  41. created, it will create a corresponding object in Salesforce. Alternatively,
  42. you can click the "salesforce" tab on any node which you've established a
  43. mapping for and manually create a Salesforce object for it.
  44. WORKING WITH WSDL FILES
  45. Salesforce module will use a default .wsdl file
  46. (salesforce_api/toolkit/soapclient/enterprise.wsdl.xml). Alternatively, you can
  47. supply your own enterprise wsdl file by placing it in the salesforce_api/wsdl/
  48. directory (salesforce_api/wsdl/enterprise.wsdl - no .xml at the end of the file
  49. name).
  50. When switching between wsdl files, keep in mind that PHP's SoapClient is caching
  51. wsdl information. You can turn off caching of wsdl information by adding this
  52. line to your settings.php:
  53. ini_set('soap.wsdl_cache_enabled', '0');
  54. You can control the life time of your cache by adding this line to your
  55. settings.php:
  56. ini_set('soap.wsdl_cache_ttl', '0');
  57. For more information on SoapClient refer to http://php.net/manual/en/book.soap.php
  58. REPORTING BUGS
  59. Bug reports should adhere to Drupal standards.
  60. Please review the issue queue at http://drupal.org/project/issues/salesforce before
  61. creating a new issue.
  62. Before creating a new issue, please:
  63. * Use latest code from CVS on a *new* Drupal install
  64. * Include the PHP error message
  65. * Turn on "log all salesforce activity" and include any relevant watchdog errors
  66. * Install a generated WSDL file and Clear your WSDL cache (see WORKING WITH WSDL FILES)
  67. * Confirm php's SOAP support
  68. * Confirm whether you were able to successfully:
  69. - Connect to Salesforce
  70. - Save credentials
  71. - Login to https://login.salesforce.com/ with those credentials
  72. - Load the test/demo page
  73. - Create a fieldmap
  74. * Include system information, including operating system, php version, apache version