Top "Salesforce" questions

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

How can i create an user with system administrator profile when seeAlldata = false in a test class

I want to create an User in test class with system Administrator profile. The issue which i have is that …

salesforce apex-code
How can do code alignment in Eclipse base Force.com IDE

How can do code alignment with Eclipse base Force.com IDE. Alignment shortcut key 'CTRL+SHIFT+F' is not working …

eclipse salesforce apex-code
Detect when a record is being cloned in trigger

Is there a way to detect that a record being inserted is the result of a clone operation in a …

triggers salesforce apex-code
How set two pageblock-Elements parallel in Visualforce?

I want to set two pageblock-Elements parallel with Visualforce. How can I do that? <apex:page> <apex:…

salesforce apex-code visualforce
Salesforce OAuth with REST API using Javascript

I have an app in my salesforce developer account that I want to allow my users to access from a …

javascript ajax rest oauth salesforce
How do format output text to show only whole numbers and not decimals along with it in Vf page

I want to display a field in a object to show just the whole number/integer value. This field has …

salesforce visualforce
Debugging Schedulable Job in apex salesforce

i am trying to run a schedulable job i never used schedulable jobs in salesforce here is my code global …

salesforce apex-code visualforce
Visualforce: How to display user's account using the $User

I have a visualforce component which I use for displaying the user's name. Currently I am doing it using the …

salesforce apex-code visualforce force.com
Where do I add a trigger for "Notes and Attachments" in salesforce.com?

I cannot find where in the salesforce.com UI I can add a trigger on a file attachment. I can …

salesforce apex-code
MIXED_DML_OPERATION error in Salesforce Apex Trigger when updating User objects

I have a trigger on a Contact object and when I try to update a User record in this trigger …

salesforce apex-code dml