Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Start working with the simple examples on GitHub
  2. Use Promises for continuations
  3. Keep things modular -- build one library of API calls in the resources
  4. Use global resources amapas much as possible. This means sharing common functions in common javascript files.
  5. In code, use 18 character Ids
  6. Date format should be a valid Salesforce date format
  7. When building custom HTML pages, be mindful that using a "Submit" button will generally reload the page by default. This may trigger some of your initialization and setup methods to fire an additional time and prevent some asynchronous calls from completing. 
  8. When working with API responses and Salesforce data, always check types and handle errors.
  9. When working with data expected to contain JSON, be sure to check whether that JSON has already been parsed. Remember that the data you receive has traversed many layers before your code receives it.

Testing/Test Data

We encourage the use of a Salesforce Sandbox to test your code in the Pulsar environment. 

...