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 79247

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.

0 votes
2 answers
1k views

What is the best way to structure an apex trigger?

I'm curious between Version 1 and Version 2, which of these trigger structures is more efficient? Or is there is another structure that is better? When using a for loop I can check requirements of the …
ThatGuy's user avatar
  • 85
0 votes
1 answer
644 views

Map.get() not returning correct value

Hi I'm trying to create Map<String, Map<String, List>>. I want it to represent "Map<Owner Name, Map<Status, List< Work Orders>>>". In the debug log it is adding every record to every map and I don't u …
ThatGuy's user avatar
  • 85
0 votes
2 answers
602 views

Display list<aggregateResult> in lightning component

-- Use the Apex model and controller to fetch server side data --> <aura:iteration items="{! … response.getReturnValue(); var pdt = map[1].get('PDTotal'); alert(pdt); component.set('v.PDTotal', pdt); } }); $A.enqueueAction(action); }, Apex
ThatGuy's user avatar
  • 85
0 votes

Display list<aggregateResult> in lightning component

Using this I was able to get the individual values from the AggregateResult. loadTotals : function(component, event) { var action = component.get('c.getTotals'); action.setParams( …
ThatGuy's user avatar
  • 85
2 votes
1 answer
1k views

I am getting DML Limit exception in Flow without using any DML statements

When I try to create 188 campaign members I get error An Apex error occurred: System.LimitException: ued:Too many DML statements: 151. … I'm not using any DML statements (to my knowledge: update, insert, create, upsert, delete) in the apex class so I'm not sure why I'm getting this limit exception. …
ThatGuy's user avatar
  • 85
1 vote
0 answers
58 views

Callback not executing after json deserialization

} JSON getAccesstoken json: { "access_token": "asd0987fehwu09if87w0h0s8dfhv", "token_type": "bearer", "expires_in": 900 } sendCompanyToExiger json: 123456 v.data json between aura and apex
ThatGuy's user avatar
  • 85