Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 33921

Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.

4 votes

Prevent duplicate account creation with custom error message

One thing you might want to think about doing instead of a WFR is to do this check for duplicates with an apex trigger something like the following: trigger manageAccountDuplicates on Account (before …
cmmoutes13's user avatar
  • 1,057
0 votes
2 answers
66 views

Help with Visualforce Options List

So I have a Visualforce Component that is using a List of Options. I would like to have that list only show the values that would have records get displayed. A little more info: This page is display …
cmmoutes13's user avatar
  • 1,057
0 votes
1 answer
70 views

Test Class works fine in Dev org, but when packaging it failed?

String nextPage = controller.rerender().getUrl(); controller = new SafeSalesHistoryOverviewController(); nextPage = controller.Rerender().getUrl(); System.assertEquals('apex
cmmoutes13's user avatar
  • 1,057
1 vote
2 answers
335 views

Rollup Summary Trigger Error: Invalid field xxxx for SObject Contact

I have an Apex Trigger that is performing a Rollup from a custom object pse_Assignment__c to Contact. Below is the trigger that I have written and the error that I am receiving. …
cmmoutes13's user avatar
  • 1,057
0 votes
1 answer
58 views

Need help making changes to my RollUp Summary Trigger

Below is the current Apex Class followed by the Apex Trigger that I am using. …
cmmoutes13's user avatar
  • 1,057
2 votes

How to Create post call from apex to external system with pass multiple parameters

Salesforce Trailhead - Apex Integration Services Using Force.com Integration APIs to Connect Your Applications …
cmmoutes13's user avatar
  • 1,057
0 votes

How do I add Chatter onto a visualforce page? Is it possible ?

Yes, adding these components to your visual force page will make it appear almost identical to the chatter feed you are used to seeing in Salesforce. I have never done it on a community page myself, b …
cmmoutes13's user avatar
  • 1,057
3 votes
3 answers
417 views

Rollup Summary Trigger Help

I am trying to create an Apex Trigger that performs a Rollup from a custom object to Contacts. …
cmmoutes13's user avatar
  • 1,057
1 vote
1 answer
435 views

Using Email Services to Update Opportunity Stage

I have a process that I am looking to create where people can send an email to a specific email address to update the Stage and a custom field called Update. I would like this to be pulled from the bo …
cmmoutes13's user avatar
  • 1,057
1 vote
1 answer
3k views

Apex Trigger for Adding Contacts to Campaigns as Campaign Members

I am writing an Apex Trigger that will take the Primary_Contact__c from an Opportunity that has been Closed Won and the Amount != Null and add that Contact to a Campaign called Closed Won. …
cmmoutes13's user avatar
  • 1,057
3 votes
1 answer
5k views

Apex Trigger to create Opportunity Contact Role based on Contact Lookup field

I have created the following Apex trigger that will create, update and delete Opportunity Contact Roles based on a Contact Lookup field placed on the Opportunity. Everything works great currently. …
cmmoutes13's user avatar
  • 1,057
1 vote
1 answer
1k views

How to display or redirect to Community User's Contact detail?

Is it possible to have a visual force page load a different record based on the User who is going to that Visual force page? So I am working with Communities on this one, and I want the users to login …
cmmoutes13's user avatar
  • 1,057
0 votes
1 answer
578 views

Using Field Value in setEnpoint() URL

Account.Billing_Address_Text__c}&key=AIzaSyAOTbFK4154NH6AfFra1Sol4Ok-zpqAgvE' Edit Here is my entire Apex Class public class CallGoogleGeocodeAPI { @future(callout=true) public static void parseJSONResponse …
cmmoutes13's user avatar
  • 1,057
0 votes
0 answers
357 views

Help with Custom Visualforce Community Landing Page

I am writing a Controller in Apex to attempt to get that value and make it the Account we load into to, but when I go to the Community I am getting the below error: Error: Error occurred while loading …
cmmoutes13's user avatar
  • 1,057
1 vote
1 answer
294 views

SelectList in PageBlock Table is not working as expected

I have created a SelectList inside of a PageBlock Table and when I add a new row to the table and use the select list it will hold the same value in all of the lists instead of just for that one row. …
cmmoutes13's user avatar
  • 1,057

15 30 50 per page