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.
0
votes
Insert and Update in same execution context from different list of custom objects
I think you can insert and update in a single context , i am not sure if I am able to understand the problem point. I can help you if I can see the code. Example you mentioned is very confusing
0
votes
i am using controller extension to insert a new record into student__c custom object
if you have get and set methods against string you do not need to do getParameters().get('StdFName'); kind of stuff. getter method will get data from VF page anyways few things :
1) You can use the o …
0
votes
Is it possible to convert an inner class to a map for dynamic reference?
.get() method can only be used for variables of type sObject or few standard data type. Custom class type cannot have a dynamic get method.
I am not sure why , but may be sObject type acts like a Ma …
0
votes
Accepted
System.NullPointerException: Argument 2 cannot be null
Just before you populate the options in loop , put a null pointer check like :
if(obj2.Description__c != null) then add options.add(new SelectOption(obj2.Id, obj2.Description__c));
0
votes
INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id while inserting user records
Error is not due this code that you are executing . There two parts in the error :
1) It is erroring out at UserTrigger (as pointed out by rest )
2) It is erroring on Contact record , look at the id …
0
votes
Split a long string into substrings till it is empty
you can avoid loop .. just do this :
String[] eachDt = new String[]{};
eachDt = dates.substringBefore(",");
and then use loop if you want to iterate the list. You don't need index variable just to …
1
vote
Different Results between Apex REST and developer console describing Task object
it could be ( my guess) as simple as profile permission or sharing or OWD around tasks. Do you want to open up tasks for the integration profile you might be using just in case..
0
votes
Unexpected Behavior in Unit Test
you have made your recursion variable as private , is that working in first place? try making it public and see if it works.
0
votes
Straight Forward Trigger - Custom Object Update Opportunity
plus you do not need apex skills. …
1
vote
1
answer
447
views
why I am not able to query CollaborationGroupRecord in a trigger?
Any idea why I get "sObject type CollaborationGroupRecord not supported" as compile error when I trying to query it in a trigger ?
I see that "Query()" is supported call in object description.
http …
2
votes
1
answer
1k
views
Analytics API .. how do I get list of all reports metadata?
I am trying to access Reports metadata from Metadata API . Following is the documentation I am using
Analytics API
If I have list of report ids , can I extract the metadata of all reports in a singl …
1
vote
How to redirect to multiple VF pages according to record type ID?
.
1) Create a map of RecordtypeId and VF Page Name ( 'MapRecTypeVF')
2) When this method is called , check the recordtypeid of the record and do this:
PageReference redirect = new PageReference('/apex …