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 2771

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.

1 vote
0 answers
193 views

How do we create getters/setters in APEX, and why do we need {get; set;}? [duplicate]

In trying to create getters and setters for my APEX classes, I am creating standard methods such as: public String getName() { return name; } But, I noted that APEX supports C#-like shorthand, i.e …
toolshed's user avatar
  • 815
1 vote
1 answer
115 views

Shorthand to test controller with only SOQL query across multiple objects?

I created a SOQL query that references fields across 3 objects, each of which has many required fields. When testing a controller that fetches a subset of the data contained within multiple objects, …
toolshed's user avatar
  • 815
0 votes
1 answer
224 views

Create a task if a particular if a date lapses? Scheduled APEX the only option?

Is creating an APEX job the only solution for this? …
toolshed's user avatar
  • 815
2 votes
1 answer
600 views

Is it possible to automate junction object creation?

Example use case: I have three objects: Order, Item, and OrderItem. OrderItem is the junction object that relates Orders to Items (because an Order can have many Items) and Item to Order (because an …
toolshed's user avatar
  • 815