Questions tagged [apex-code]

A proprietary Java-like programming language for the Force.com Platform, not to be confused with Oracle's Application Express (oracle-apex).

From the Salesforce.com page What is Apex?:

Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Force.com platform server in conjunction with calls to the Force.com​ API. Using syntax that looks like Java and acts like database stored procedures, Apex enables developers to add business logic to most system events, including button clicks, related record updates, and Visualforce pages. Apex code can be initiated by Web service requests and from triggers on objects.

For questions that are related to this tag you can use shorter tag - .

(Please use to refer to Oracle Application Express.)

Useful links:

Force.com Apex Code Developer's Guide

1514 questions
-1
votes
1 answer

Sort a List of Objects by Date

I have a list of objects that I have retrieved from a webservice call. On the other end, the list of objects looks like this: ({ead=3/11/2016, qty=8}, {ead=4/22/2016, qty=46}, {ead=10/26/2016, qty=34}) However, once the list gets pulled into…
Nick D
  • 251
  • 1
  • 7
  • 20
-1
votes
1 answer

Apex trigger zero code coverage

Can anyone please help me to solve my issue. I have created apex trigger with test classes. I am not getting any error after test run but unable to getting any code coverage. Please check below is my apex trigger and test class. …
Nayana
  • 3
  • 3
-1
votes
1 answer

import data from the objects created in salesforce

I have created an app in salesforce platform, i have some primitive records in that, i need to import them in visual force. For example,if we create a record in Account in Salesforce,,, like charles,Jennifer,Tom and all i need to import them in…
Chetan
  • 1,590
  • 3
  • 19
  • 34
-1
votes
1 answer

need test covrage class for salesforce trigger

I need to write test class for following trigger so that i can increase test covrage for to upload package on salesforce. I dont to how to write test class for triggers. Trigger AutoActivityCreation on Account(after update) { List task =…
-1
votes
1 answer

What will be the Correct Defination of Junction Object in Salesforce

Recently I was puzzled with the Junction Object, well I am clear about this thing, But I require a proper definition with an example, So I can understand it more easily and clear manner. My actual problem is here:-- The junction Object provides a…
N.P. SINGH
  • 303
  • 1
  • 4
  • 15
-1
votes
1 answer

reRender is not working as expected in visualforce

i am sure i am doing a very small mistake.i created a visualforce page with code
mathlearner
  • 7,509
  • 31
  • 126
  • 189
-1
votes
1 answer

parameter value null is redirected to url

Hi i am writing a simple controller class with code public class OMTime1 { public String xx { get; set; } public PageReference continue1(){ String…
mathlearner
  • 7,509
  • 31
  • 126
  • 189
-1
votes
1 answer

Modifying a Trigger for Opportunity so it will not update Manager if's it's been Closed/Won

I was wondering if someone could help me modifying this trigger. I'm having issues Opportunities are being updated after they are Closed/Won, which is overwriting the old (correct manager) with the rep's current manager. This is an issue because I…
-1
votes
1 answer

VF page displaying related list

I have Category table as Category(subject text) and QA tables as QA(Question text, Answer text, Lookup(Category)) I want to create a Visualforce page as : Category1.subject Question1 checkbox Answer1 Question2 checkbox …
user1003121
  • 1,169
  • 3
  • 9
  • 14
-1
votes
3 answers

what is wrong with my test class in apex force.com code?

I have written a working class in Apex. It is an Email service extender, that processes incoming emails. It is working perfect on my sandbox enviroment. I have created a test class, so I can also deploy it to my production, but when validating the…
Saariko
  • 1,703
  • 4
  • 26
  • 46
-1
votes
1 answer

Heap size related error

how to increase heap size? or how to overcome the problem related to heap size. I am facing error related to heap size. my error is: Apex heap size too large: 9264402 Error is in expression '{!method}' in component in page page1 I have used…
ashish
  • 33
  • 1
  • 7
-1
votes
1 answer

Apex - scope - variables

I have tried a lot to get this done but I dont know how to get it working. This is a normal programming question nothing of a Apex/Salesforce riddle. Scenario: I have a junction object with 2 parent objects for example Lets say there…
subodhbahl
  • 415
  • 9
  • 22
-1
votes
1 answer

Configuring Google Drive API and SDK

I'm attempting to install the DrEdit sample app for Salesforce onto GAE. The app runs, but saving or opening a file results in an HTTP 403 "Access Not Configured Error". I have also attempted to use the values for API Access>Client ID for web…
-2
votes
3 answers

Salesforce: I just hit my server processing time limit

I'm a relatively new developer who uses the Force.com IDE on eclipse. What are some things I could do to avoid this happening in the future? I heard that using Eclipse might not be the efficient way of doing things in general... but I'm very used to…
Gibson
  • 780
  • 3
  • 14
  • 33
-2
votes
1 answer

closing the current popup window on button click in apex using salesforce

i am in a strange situation I have an apex page inside that page there is a button on the click of which i call a a javascript method. From this method i call window.open(url) and open a new popup window. Now this new window is also an apex…
Swati
  • 2,870
  • 7
  • 45
  • 87
1 2 3
99
100