A proprietary Java-like programming language for the Force.com Platform.

learn more… | top users | synonyms

0
votes
2answers
25 views

Increase test coverage for query IsSandbox =true

I am checking for sandbox with help of query select Id from Organization where IsSandbox =true limit 1 but now in production and developer org my code coverage is going down to 33% as this query is ...
2
votes
1answer
16 views

Combining Filter with Where clause in Subquery is failing

I am trying to get the uncompleted tasks of every lead in a Lead View, when I try to get all the tasks it works fine, but when I add in the "where Status != 'Completed'" I get the following ...
1
vote
1answer
18 views

REST API calls to 3rd Party (Pardot), multiple @future callouts

Setup: Pardot (3rd Party services I'm using) requires you to request an API_Key by submitting your email, password, and user_key so that you can then use the api_key with the user_key to do any API ...
1
vote
1answer
11 views

Database.DeleteResult.getErrors() question

I am trying to connect specific records that fail to delete in my batch job to their error messages. I thought my solution was working, but I checked the size of .getErrors() and it's size 1. My test ...
3
votes
1answer
46 views

Using @future tag on Apex Webservice but code not executing asynchronously

With the winter '15 release over the weekend some mission critical code for us is now getting the infamous "Apex CPU time limit exceeded". It worked fine for the past 8 months until this release. (as ...
2
votes
1answer
20 views

System.AsyncException: Database.executeBatch cannot be called from a batch start, batch execute, or future method on batch within batch

I am attempting to call a batch within a batch. The reason why I am attempting this is because the values returned in the main batch is used in a query to grab other records to be updated from a ...
2
votes
1answer
32 views

Display unsecured Intranet pages in SF

I have company intranet pages are insecure webpages , and I want to make them accessible by a tab. From what I understand, you can only put secure pages on tabs. Can someone recommend a work around? ...
2
votes
0answers
20 views

Add variable to Object.query field

I understand that when doing SOQL queries with apex, you can add variables like so: [Select Id From Account Where Date = :date] But, for instance, I'm creating a pushtopic with a query like so: ...
0
votes
1answer
20 views

Batch apex error in apex job : Exceeded max size limit of 3000000

Using Batch apex i am trying to Insert new records in to custom object from json string in salesforce from API url. When my batch apex class run i got this error in apex log. please explain me
1
vote
3answers
34 views

Lookup to allow multiple selection of values

I would like to know whether it is possible to implement a custom lookup (not a lookup relationship)where I can do a multiselect of users. This selection of multiple users will result in their emails ...
2
votes
1answer
13 views

Why should a queryString variable in an apex batch class declared as global?

Every documentation on batch apex class shows the queryString variable declared as global. Is there a specific reason for doing so??
1
vote
1answer
26 views

Insufficient access on object id

This error is seen by the users on whenever they try to edit a Case record. Whats puzzling is this error shown to users only for few cases and not all. Can someone throw me an idea as to where I ...
0
votes
1answer
26 views

System.ListException: Duplicate id in list in Trigger

I get System.ListException: Duplicate id in list error in my trigger code. i haven't used single list in code. i used Set and Map in all places. Following is my trigger. trigger ...
0
votes
0answers
22 views

Error while trying to create a dynamic visual force page

I am trying to create a dynamic visual force page and am referring https://developer.salesforce.com/page/Dynamic_Visualforce_Components I am getting the below error when trying to save the class: ...
1
vote
0answers
12 views

Picklist refresh taking long time for European Users

Kinda weird issue :) We have three picklists in Case object (Queue/Type/Area). Queue drives Type...Type drives Area. This picklist refresh for Type and Area is quite fast (1-2 secs for users in ...
4
votes
2answers
137 views

Database Class Methods

A noobie question. Is Database.Update bulkified by itself ?. I know it is similar to "update" but just wanna confirm that this alternate version of DML is auto bulkified. For example let us assume ...
1
vote
2answers
18 views

How to pass document id dynamically in help url?

I tried to pass document id dynamically and i am going to render that pdf document when we click on help link. but not getting how to achieve this.. here in below pageblock component i want to pass ...
0
votes
1answer
40 views

System.NullPointerException: Attempt to de-reference a null object:

I am new to salesforce. I was trying to update that account record name belong to me. I am getting System.NullPointerException: Attempt to de-reference a null object could some can help me ...
0
votes
0answers
15 views

test class for the trigger [on hold]

trigger CMfromContact on CampaignMember (before insert) { List <CampaignMember> c=trigger.new; // CampaignMember C= trigger.new[0]; List<Campaign> a= new ...
1
vote
1answer
29 views

Rollup Summary to Calculate Weighted Average

As a child (master-detail) to my opportunity object, I have a custom object 'Transactions'. Each transaction has its own interest rate, transaction date, and amount. The opportunity has a term (in ...
0
votes
0answers
37 views

Which Development Environment is best? [on hold]

Having "knocked" together a few triggers and test classes I thought that it was time that I followed the Apex workbooks from start to finish in order to build up some formal knowledge of Apex ...
0
votes
2answers
30 views

Visualforce Error:Formula Expression is required on the action attributes

I have a requirement to create VFPage that create multiple records and delete the record when i click on delete button... But I m getting VisualForce Error ..Please Help.... ...
8
votes
4answers
157 views

Initialize vs not initialize

Question is in String text1; String text2 = null; Is there any difference? Why is it possible at all to 'initialize' with null? EDIT: I specify my question. Why someone will write String text2 = ...
0
votes
0answers
9 views

Batch Processing: “Read Timed Out” Error

I am trying to add records from API URL using batch apex in salesforce. I got an error while running batch apex. Please help me to solve this error.
0
votes
1answer
18 views

Is it possible now to add inline VF page in Standard New/Edit page layout .

Is it possible now to add inline VF page in Standard New/Edit page layout . I need to add a VF page in standard New/Edit page of Task and Event.Can anyone please help me here. Thanks
2
votes
0answers
19 views

Invalid type for Http* method: CustomClass.etc.etc - How to change return class for managed package?

I've exposed a custom global class (EmailEventUtils.Result) as the return value for a global static REST endpoint. I've published the class as part of a managed package. ...
4
votes
1answer
57 views

@AuraEnabled Support for Apex Class Return Types?

Beginning on page 141 of The Lightning Components Developer Guide, they list the valid types for aura attributes. Apex Classes and collections are included, so I've written an apex controller method ...
1
vote
3answers
36 views

Unit test for trigger SOQL query that is uncovered

I'm having an issue finishing up my unit test, and I think it is related to the SOQL query in my trigger. The trigger itself checks to see, upon Lead creation, if a Contact exists with a matching ...
2
votes
2answers
26 views

Code Coverage 70% but I can't figure out how to make it to 75% or 100%

I am new to triggers. I will admit that but this is my first trigger and I really want it to work! My problem is that I still am receiving only 70% Code Coverage when the trigger works fine in ...
0
votes
1answer
12 views

Calculating delivery date ranges based on order cut-off times?

We are trying to code the following delivery schedule http://www.fragilistics.co.uk/delivery-schedule into Salesforce, such that if a customer orders an item on Friday, Oct 24th and they're in Area ...
0
votes
2answers
21 views

Apex Test Class for trigger [on hold]

Below is my first trigger and it works! Then I found out I had to right a test class and I have no idea where to start. Please advise. Thanks! trigger CreateProject on Opportunity (after update) { ...
0
votes
1answer
16 views

Custom Lookup Design

We have a Custom Object called "CaseEvents" which is a child to the parent standard object "Case". Case-CaseEvents is 1:M relationship. I would like to perform the following configuration a) ...
1
vote
1answer
42 views

Apex code completion in Eclipse Luna not working

I installed Force.com IDE as Eclipse Luna plugin. Apex code completion is not working in Luna, but I can't switch back to Kepler now. In Force.com IDE installation manual Luna is not mentioned as a ...
1
vote
1answer
27 views

Accessing lookup fields within trigger context

I have a custom object Customer with a few fields. One of the fields is a Lookup field that refers to a standard object Account. I'm writing a trigger that should fire before each insert/update. The ...
1
vote
1answer
32 views

The value of the “id” parameter contains a character that is not allowed or the value exceeds the maximum allowed length

It fails right here: <apex:inputField value="{!Rec.supplier.id}" styleClass="rate" required="true"/> My code is: Public List<sobject> ...
1
vote
1answer
13 views

Email Logs - Viewing the Content of the email sent from salesforce

Using email log I was able to obtain the emails sent from Salesforce.com But from the email logs I am not able to read the actual content. Also checked in the documentation ..they have not said that ...
1
vote
1answer
26 views

Javascript to delete rows from a queue

I have javascript on my visualforce page that adds a delete button beside each new case added to the queue but cannot get this button to actually delete these items. This is the code I have so far. ...
0
votes
1answer
29 views

APEX trigger error on Account Level Only

I'm new to coding and my developer friend and I have this APEX trigger to update a custom field on opportunities, based on recently created tasks. However, we can't create a task on the account ...
-1
votes
1answer
25 views

Display data of fields on selecting other fields

I have a requirement where I have to display Account's 2 fields (Text type) FieldA__c and FieldB__c as dropdown fields. and once selecting the values of these two fields, values of other Account's ...
1
vote
1answer
25 views

Apex Schedule Cron Job change run user

I am implementing apex scheduler, i wondering how can i change Run User As to some one else. Presently it is taking current User. Thanks in advance.
4
votes
3answers
42 views

A way to determine a required field is missing in Apex

For my case, I don't really need to know which required field is missing data, as long one of them is I want to thrown in a generic message. Is there a method in apex that will tell me that one of ...
2
votes
1answer
31 views

Invoke a workflow from Apex Class

I have a workflow that needs to be run daily to check is the status of a particular file is completed or not. If the file is not completed then the workflow should be triggered and a Email alert ...
1
vote
2answers
65 views

Execute Anonymous Error :- System.ListException: List index out of bounds: 0?

While Updating the Custom Object(SiteContracts__c) fields through Execute Anonymous I am getting this Error. Here is my code: List<SiteContracts__c> sitecontractList = new ...
2
votes
1answer
31 views

Is it possible to add a Group to another Group (as Sub/Nested Group) through Apex - Trigger/Batch?

Is it possible to add a Group to another Group (as Sub/Nested Group) through Apex - Trigger/Batch?. Also want to know the possibility to add a Role into a Group. Any thoughts ??
0
votes
1answer
26 views

How to manage the governor limit : Maximum number of Apex classes scheduled concurrently : 100

I launch a batch which call a lot of scheduled job. But I reach the governor limit : Maximum number of Apex classes scheduled concurrently : 100 I'm wondering what happens when this limit is ...
0
votes
0answers
22 views

Issue in Deployment of Document object CRUD access

i am trying to do a deployment using ant and i am facing an issue in migration the CRUD permission for Document object. I see that for profiles i have the option to define CRUD access for document ...
0
votes
1answer
49 views

checkbox in visualforce page

I have a <apex:pabeBlockTable> which iterates through a custom object and generates checkboxes in two columns for which i am using two custom field of type checkbox. On the click of a checkbox, ...
0
votes
1answer
24 views

I want to create a custom formula field using apex

I want to create a field in which user is going to put the formula(through picklist ). For Eg: a+b*c\d or if(condition)) then a= b+c Where it is working fine with normal ...
0
votes
1answer
24 views

MyVisualForcePage does not exist or is not a valid override for action View. - Deployment Error

tried to deploy a a change set from 1 sandbox to another and it gives the error "MyVisualForcePage does not exist or is not a valid override for action View" . I included the VF page so I'm ...
1
vote
0answers
12 views

Creating Amazon S3 Signing Key using Apex

I had an Apex class in which I could connect to my Amazon S3 bucket by creating a request using Sig v.2 for AWS. I now need to change my code to Sig V.4 to connect to a different S3 region. I've ...