• Welcome
  • About
    • Leadership
    • Blogroll
  • Force-Squared Blog
  • Support
    • Knowledge Base
    • Log a Case
  • Is It Dreamforce Yet?
  • Welcome
  • About
    • Leadership
    • Blogroll
  • Force-Squared Blog
  • Support
    • Knowledge Base
    • Log a Case
  • Is It Dreamforce Yet?
  • Tips and Tricks
  • Configuration
  • Development
You are here: Home / Archives for Salesforce CRM / Development / Apex

Lightning Component With Running User Information

February 27, 2015 by David Schach 4 Comments

Last week, at Snowforce in Salt Lake City, I saw a demonstration of the Lightning App Builder and decided that I wanted to make a Lightning component of my own. I thought the best thing to do was to follow the quick-start PDF, and was quite proud of that. I made the text say "Hello […]

Filed Under: Apex, Lightning, Lightning Components, Lightning Platform, Salesforce CRM Tagged With: AppBuilder, Lightning, Salesforce1

Filed Under: Apex, Lightning, Lightning Components, Lightning Platform, Salesforce CRM Tagged With: AppBuilder, Lightning, Salesforce1

Chatter Publisher Actions (Part 2): Object Custom Action

July 15, 2013 by David Schach 12 Comments

Chatter Publisher Actions (Part 2): Object Custom Action

In the previous post, we looked at using the standard (button-click) way to create a new child record using Publisher Actions. Pretty basic stuff. Using Visualforce to create a custom action is a bit harder. Let's start with the documentation. The PDF provided by clicking on the link in the Actions screen (Account action is […]

Filed Under: Apex, Chatter, Development, Summer 13, Tips and Tricks, Visualforce Tagged With: Apex, Chatter, Force.com Platform, Publisher, Visualforce

Filed Under: Apex, Chatter, Development, Summer 13, Tips and Tricks, Visualforce Tagged With: Apex, Chatter, Force.com Platform, Publisher, Visualforce

Create and Populate a Map<Id, Sobject> Without Loops

July 25, 2012 by David Schach 7 Comments

There are many reasons to use Maps in Apex triggers. Sometimes I want to make a List of Contacts, but I want to pull each one by its ID. This is a good reason to abandon the List and to make a
Java
1
Map&lt;id, Contact&gt;
. (Some will prefer to use
Java
1
Map&lt;string, Contact&gt;
, and that is okay too.) We […]

Filed Under: Apex, Tips and Tricks Tagged With: Apex, Force.com Platform

Filed Under: Apex, Tips and Tricks Tagged With: Apex, Force.com Platform

Workflow ISCHANGED() translated to Apex trigger

February 2, 2012 by David Schach 2 Comments

Workflow is great. I can simply and declaratively make changes, and can easily update things like email templates, criteria, tasks, etc. without using Eclipse and writing/running unit tests. Sometimes, however, workflow isn’t enough; we need to use a trigger. Today, I had a use-case that when a DateTime field is filled, a contact (identified via […]

Filed Under: Apex, Configuration, Tips and Tricks Tagged With: Apex

Filed Under: Apex, Configuration, Tips and Tricks Tagged With: Apex

PageReference Best Practice

May 5, 2011 by David Schach 2 Comments

I've seen a lot of coders put the following into their custom Visualforce controllers:
Java
1
2
3
4
5
6
7
8
9
10
public PageReference customsave() {
    try{
        insert acct;
    } catch (DMLException e) {
        /*do stuff here*/
    }
    PageReference acctPage = new PageReference ('/' + acct.id};
    acctPage.setRedirect(true);
    return acctPage;
}
I've decided that I don't like this approach. It feels too much like a URL hack, and though I'm sure that it will always work (meaning that salesforce.com will never change its way of referring to a record by
Java
1
/&lt;recordID&gt;
), […]

Filed Under: Apex, Development, Salesforce, Visualforce Tagged With: Apex

Filed Under: Apex, Development, Salesforce, Visualforce Tagged With: Apex

  • 1
  • 2
  • 3
  • 4
  • Next Page »

Is it Dreamforce Yet?

Find out!

Find us on the AppExchange

Mass Update Contacts Pro

Get It Now



Mass Update Contact Address

Get It Now


Recent Posts

  • Lightning Component With Running User Information
  • ChatterBINGO is Now Open-Source
  • Display Only My Role’s Records on a Report
  • Chatter Publisher Actions (Part 2): Object Custom Action
  • Chatter Publisher Actions (Part 1): Create a Record

Post Categories

Salesforce Blogs

  • TehNerd
  • Technology, Coding and Bears… OH MY!
  • Salesforce Source
  • The Silver Lining
  • Force Monkey
  • Vertical Coder
  • Embracing the Cloud
  • Decoding Salesforce
  • Arrowpointe
  • MK Partners

Popular Tags

#df09 #df10 Akismet Apex AppBuilder AppExchange Appirio Astadia Blogs Chatter Configuration Content DreamFactory Dreamforce Eclipse IDE Enterprise Force.com Builder Force.com Platform Google Infowelders Integration Just for fun Lightning New Developments New Features Partner Program PersonAccount Projects Publisher Salesforce Salesforce1 Salesforce for Google Apps sfdcverse Sites Visualforce Web-to X-Squared On Demand

Like Us on Facebook

Like Us on Facebook

Share This Page

Find Us Online

  • Twitter
  • Facebook
  • LinkedIn
  • Google Plus
  • X-Squared G+ Page
  • RSS

Subscribe

RSS Feed Comments

Subscribe via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,088 other subscribers

Copyright © 2008–2019 X-Squared On Demand · Genesis Framework by StudioPress · WordPress · Log in