Search Results
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 |
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
Constructor not defined error
You are getting this error since constructor of Summary expects an AggregateResult, instead of that that you are passing an list.
1
vote
Fetch Approval comments from ProcessInstanceStep to a different Object called Order
You should query from Step instead of order in your subquery.
1
vote
Redirecting same page along with Success Message
try by setting setRedirect to false, also after inserting the records create a new instance of your CasePO instance before redirecting.
-2
votes
How to create schedule batch apex which returns list of object records?
Since you want to pass a collection, you could use Iterable,
global Iterable<Contact> start(Database.BatchableContext BC) {
contactList= new List<contact>([Select Con.FirstName,Con.LastName,Co …
4
votes
1
answer
1k
views
Reference child class in Visualforce component
I'm trying to build a VF component that references an attribute that is an instance of a child class. I have a top level class A and inner class B and C which extend class A and i am trying to pass th …
0
votes
Accepted
Returning a value from JSON Object
try this,
Probably you need to change it with the correct field name
String response = '{"meta": {"number_of_records": 3},"data": "13458245"}';
JSONParser parser = JSON.createParser(response);
while …
1
vote
Accepted
Can I get a call back to my VF page when I call ConnectApi.ChatterFeeds.postFeedItem in my A...
try it like this,
public PageReference postNewFeedItem() {
PageReference PageRef=Page.pageyouwanttorefresh;
// Post to the chatter news feed.
ConnectApi.ChatterFeeds.postFeedItem(null, Con …
0
votes
1
answer
547
views
How to find the User Reputation Level
Is there a way to directly get the user reputation level using ConnectApi. Right now I am querying the user reputation points and then comparing the points with points required to achieve that level u …
1
vote
1
answer
739
views
SOQL Injection Error in Checkmarx Scanner Report
I have a query similar to this in one of our apps,
List<Account> accountList = Database.query('SELECT Id,Name FROM Account WHERE Id IN:accIds');
But Checkmarx always gives SOQL Injection Error in …
1
vote
0
answers
504
views
Can't access merge fields in email template
In our salesforce community we have an apex class declared with the without sharing keyword as a result we are able to access records owned by other user. …