salesforce-dev

examples and utilities for salesforce developers

Setup

create a 'credentials' file inside ./utils folder like so: (replace info with your own)

# utils/credentials
SF_USER="my-user@some-domain.com"
SF_PASS="my-password"
SF_TOKEN="my-security-token"

Deployment of projects

../utils/deploy.sh

SL1

Application which integrates SamanageCMDB 4 Salesforce and ScienseLogic SL1

Execute one refresh cycle:

SL1Test.refreshDevices('SL1user', 'SL1password', 'last-refresh-date-unix-time');

deploy:

./deploy.sh

useful-classes

Some standalone useful example classes:

PublicImage

  • create in the ORG a image that can be accessed without need for salesforce user/password and return its public URL as String that can be used in a HTML document (for example)

EmailTemplateUtils

  • render email template to string
  • merge merge-fields into a 'template' contained in a string

lighting-on-vfp

Use a lightning component to display a record on a Visualforce Page Deploy: utils/deploy Activate: https://c.gus.visual.force.com/apex/EetayShowRecord