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.
6
votes
7
answers
49k
views
NO_APPLICABLE_PROCESS :No applicable process found!
// Insert an account
Account a = new Account(Name='Test',
annualRevenue=100.0);
insert a;
// Create an approval request for the account
Approval.ProcessSubmitRequest req1 =
…
0
votes
1
answer
365
views
Field 'ProfilePhotoId' on object 'User' is not supported
I have been getting this exception when updating lead(Process Builder). While I do not see any issue with process builders update operation I get below exception.
This error occurred:
FIELD_CUST …
5
votes
6
answers
15k
views
System.UnexpectedException: No more than one executeBatch can be called from within a testme...
This is the test method i have writtenfor batch apex ProductUpdate .Even if i have a single callout to Database.Executebatch() I am getting the following error.
Please help ! …
3
votes
4
answers
6k
views
How to know if a custom field is referenced in Workflow or Validation rule using Metadata API?
Is there any way to find out if a field is used in Workflow or not. I tried working with Metadata API's listMetadata call which returned me file properties . But no information about Field referenced …
22
votes
3
answers
13k
views
Javascript proxies were not generated for the controller: cannot use public remoted methods ...
I am trying to navigate between a page to another where it uses JsRemoting.
When i run the second page alone it works fine. But when i go from first page to another
it throws me this kind of error.
P …
3
votes
System.Queryexceptionerror
string query='select from1__c,Quote_number_new__c from quote__c ';
public void showlist(){ //do not return anything
if(inputText1 != null){
query += 'WHERE Quote_number_new__c ' + oper …
4
votes
1
answer
1k
views
Checking if a ApexClass,ApexPage or ApexTrigger is Managed or Not?
Is there any way to Query and see If a class in the Org is Managed or not ?
SELECT ApiVersion,Body,BodyCrc,CreatedById,CreatedDate,Id,IsValid,LastModifiedById,LastModifiedDate,LengthWithoutComments,N …
6
votes
1
answer
1k
views
List.add() not adding values at the end. Sorts internally
I am trying to add values to a list iterating through a for loop like this.
List<String> leftvalues = new List<String>();
for(OpportunityLineItem o: OLI_List)
{
//Gets product name from map and …
2
votes
0
answers
659
views
Freezing pageblock header using jQuery- doesnt work on mozilla [closed]
I am freezing the header as explained in this below blog.
Freezing header -Readkite blog
But the problem i am facing is that i am not able to get it worked on Mozilla.
Do i need to add anything extra …
1
vote
0
answers
665
views
MALFORMED_ID error on detail page button
I have a detail page button on Opportunity record . I am trying to call a Webservice class method and do some operation. I am trying to pass the Id as parameter.
{!REQUIRESCRIPT("/soap/ajax/18.0/conn …
1
vote
1
answer
1k
views
Unable to get AccountId in Quote Trigger(after update)
with Code below I am trying to get account Id in the trigger for Quote.
trigger populateAccountAddress on Quote (after insert) {
System.debug('DEBUG 1:'+trigger.new[0].OpportunityId);
System.debug('D …
2
votes
2
answers
1k
views
How to dynamically set type_x value for Metadata.CustomField?
I am trying to delete fields using metadata API . But how to set the type_x vale for the field i chose ?
The describeFieldresult getType() method just gets me DisplayName for the field i chose.
Or …
1
vote
1
answer
3k
views
Detail Page Button with JavaScript on Opportunity Record
I have a requirement where in I need to read all the Names of OpportunityLineItems and then proceed with the logic.
{!REQUIRESCRIPT("/soap/ajax/18.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/18.0 …
4
votes
how to check thru code, if a field is referred / used anywhere in any of our apex code / vf ...
Its possible to query all the apex class body and Vf page body and then look for the required Field using some string method . …
3
votes
2
answers
9k
views
How to parse base64 data received from controller using javascript or Apex (ParsingWord docu...
/Controller.cls/
public class docxVFcontroller {
public string base64text {get; set;}
public void getFile()
{
Attachment a = [Select Body from attachment where name like '%word.docx% …