Top "Salesforce" questions

A Platform-as-a-Service development environment delivered on Salesforce.

Salesforce SOQL describe table

Is there a way to fetch a list of all fields in a table in Salesforce? DESCRIBE myTable doesn't work, …

salesforce soql
Salesforce Trigger: Update field Trigger from Custom Object

New to apex and have a question about writing triggers. Essentially, I'm trying to create a trigger that updates a …

triggers salesforce custom-object
Salesforce SOQL Query for "Notes And Attachments" of a site

Basically, I need a single SOQL query, executable using the web service API, that will return all NoteAndAttachment items that …

.net web-services salesforce soql
Salesforce Lightning: Error during init [Cannot read property 'apply' of undefined]

I'm stuck with a Lightning component that doesn't render. I get a strange error immediately: This page has an error. …

salesforce sfdc aura.js
What are the parameters for the Salesforce WebServiceCallout.invoke method?

I would like to know the parameters for the invoke method used by Salesforce to invoke remote web services. I …

api salesforce callouts
LimitException: Too many query rows: 50001 from with count() aggregate function

I have a Visualforce page where I'd like to display a count of the number of records in a particular …

salesforce apex-code visualforce soql
salesforce cast from sObject to custom object

I have written a Base controller that I want to use to manage data pagination on sever controllers. I have …

salesforce apex-code visualforce
Maximum Size of List in APEX Salesforce

I have created a DataBase.Batchable class in which I am inserting a custom object named Event__c public class …

salesforce apex-code soql
SOQL - Querying for a list of users the current user is following

In my app I display a list of the current users. I request it like this: Attempt 1 List<User&…

salesforce apex-code soql salesforce-chatter
Validating a Salesforce Id

Is there a way to validate a Salesforce ID, maybe using RegEx? They are normally 15 chars or 18 chars but do …

regex salesforce