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

learn more… | top users | synonyms (1)

0
votes
0answers
2 views

How to carry over pick list values from old Opportunity to new one?

I have a workflow and Process builder that creates a New Opportunity. In that new opportunity I'd like to carry over 2 custom pick list fields data from the old opportunity. Is that possible using ...
0
votes
0answers
3 views

Straight Forward Trigger - Custom Object Update Opportunity

I'm still pretty new to APEX and wanted to see if you could help. I think its pretty straight forward. I have a custom object called Interest which contains two custom fields. I want to update ...
0
votes
1answer
8 views

How to get the ID of the previous page?

I'm currently trying to make a system for selecting multiple objects and connecting them to a related list within Opportunities. The last piece of the puzzle for me is getting the ID of the ...
0
votes
1answer
9 views

Add multiple records of Custom object Book using standard Controller and Extensions . I am not getting the output as expected

While trying to add multiple records on my Custom object Book using standard Controller and extension . While clicking on the submit button records are not inserted . Could you please check at my ...
0
votes
1answer
8 views

Getting error with trigger to Submit Opportunity For Approval randomly.

I get the below error on some opps not all but some and I have no clue why. Any help would be great "OpportunitySubmitForApproval2: execution of AfterUpdate caused by: System.DmlException: Process ...
1
vote
1answer
14 views

Reshape of items in listview

What i am trying to achieve is to reshape the listview of the leas/accounts/etc... To be shown as grid view. For example, what i want to see is something like this Instead of this... Please ...
2
votes
1answer
85 views

Can wrapper class records be sorted?

I have an inline visualforce page in which I am showing data from 3 objects using a wrapper class. Now what i want is my 2nd column(record type name) to sort in asc order and 3rd column(roles) in desc ...
1
vote
1answer
27 views

Call Apex function first and then javascript method

On click of apex: command button I have to call method in controller so that I can get values. After calling the apex i have to call an javscript function. I have used action function to call apex ...
-2
votes
1answer
29 views

I am getting System.LimitException: Too many SOQL queries: 101 error [on hold]

public flat_send_quote(ApexPages.StandardController controller) { a = ApexPages.currentPage().getParameters().get('id'); apt = new List<Apartment__c>(); apt = [SELECT ...
0
votes
1answer
11 views

Campaign Related List doesnt generate

Campaign Related list doesn't work. It gives me this error: 'Campaign History' is not a valid child relationship name for entity Lead The code is below. Can anyone assist me? Thanks, Darko ...
0
votes
0answers
12 views

render as pdf using visual force page (Render Only filled Fields in an Object) not blank fields in an object

I am very new to the Visual Force Page, I got an object in which some of the fields will be filled and some of them will not. For that object i have created Button which as connected to visual force ...
1
vote
1answer
29 views

Gotchas’: Using jQueryUI to make popups in Visualforce pages

Most of the times we face issues while we integrate jQuery UI popups in Visual Force page. I was also struggling a lot as i was facing the same issues. And I found one article which helped me in ...
2
votes
0answers
31 views

Exception during Inserting attachment from managed package

I'm working on managed package and I have to insert Attachment record from my apex code. The code is pretty simple, that's just create and insert Attachment, something like that: Attachment ...
0
votes
1answer
23 views

Using checkboxes to select objects

I am making a visualforce page for my custom object Opportunity Package to add multiple to a related list all at once. In order to accomplish this I will need to know which ones are being selected. ...
1
vote
1answer
24 views

Should this be a trigger or is there another option I'm missing

I have a list of 41K zip codes that are all are connected to a DMA. The business would like to enter in a zip code and then based on that value automatically return the DMA value in the Market2__c ...
-1
votes
1answer
10 views

Incompatible value type Object

I am getting the following error while adding elements to a map. Error:- Incompatible value type Object Code:- public class CR_Report{ public void Completed_CR_Report(){ //Compare old zip ...
3
votes
2answers
24 views

Modify content of formula field in apex or .net

My organization has a number of formula fields that are used to link to services and sites outside of salesforce. In our production environment these need to point to the production sites and in our ...
0
votes
1answer
27 views

Question on SOAP API Task record create ActivityDate field .NET

I prepared a list of tasks with subject,activitydate,description,whatid,whoid filled. Then I did a create operation using SOAP API. The records were created into system but the none of the record's ...
2
votes
1answer
15 views

Are fixes in new version applied to old versions of platform

I have a lot of apex classes and triggers. Some of them are using limits heavily. Every time new version is available, I'm switching classes on which I work to next version (via Eclipse), so I can ...
0
votes
2answers
24 views

Disable an inputField (when a sObject record is readonly in the user assigned Profile)

I want to make an inputField disabled when a sObject record is read-only for a user. Tried using Disabled property but it doesn't support for inputField. I have two doubts:- 1. How to check if the ...
0
votes
1answer
32 views

Batch class on created date [on hold]

I have requirement where I have to fire batch class to check the user is in queue or assigned to any individual owner after 24 hours from the created date and should even calculate the holidays Can I ...
0
votes
3answers
32 views

test class for a trigger

I have 2 triggers into sandbox that work s perfectly and I want to transfer it into production. The only problem is that I need to write a test class for each one in order to cover 75% of the triggers ...
0
votes
0answers
13 views

how to get map of <userid,territoryname> for the 1st aligned territory of that user [on hold]

User U1 can be aligned to t1,t2...tn. How to get a map of for the 1st aligned territory of that user? Also i need to populate nested map using with <userid,User_SObject_details> and ...
0
votes
1answer
22 views

Scheduled / Recurring Apex Within A Week

I am not finding this anywhere in Help at Salesforce or via Google. WHen I schedule Apex via the Developer's Console (a weekly run), is it NOT possible to have the first run in LESS than a WEEK? ...
1
vote
0answers
25 views

Create Opportunity Using rest API; Error : 400 bad request in response

Example for creating Opportunity curl https://na1.salesforce.com/services/data/v20.0/sobjects/Opportunity/ -H "Authorization: Bearer token" -H "Content-Type: application/json" -d @newrecord.json -X ...
0
votes
2answers
30 views

How can i get the owner name in a formula field

I am trying to write a formula field which will pick the Owner name ... but currently the id is being displayed in the formula field. Is thr any way to capture this can plz anyone help me... Thanx in ...
2
votes
2answers
29 views

Not able to save using simple custom controller

I'm learning custom controllers and facing difficulty in simple save action in Account page. What I'm doing because of changes made to account are not getting saved ? This is my simple VF page ...
0
votes
0answers
20 views

Repeation of Same product Name

The Scenario is the product name get repeated in different quarters(Say q1,q2,q3,q4) and need to filter by adding its quantity and Amount.I get the Quantities and Amount with the total displayed but ...
0
votes
1answer
16 views

Salesforce Assign Cases created by Standard user to Community Users

I have created a salesforce customer Community with Licence Customer Community user. I have some cases in my org which have owner as Salesforce administrator or other salesforce standard user. Now the ...
0
votes
1answer
25 views

Invoking Update Operation without actually updating fields

I have written a new WF field update for a CaseLogs__c. This field update will fire whenever the record is created or edited. This field update obviously will not fire for records which currently ...
0
votes
1answer
15 views

Get values from child page

I am creating an custom vf page for opportunity. I am having 5 input text box which has an lookup. on click of this lookup an pop up should get displayed(i.e custon child page) and should select ...
-1
votes
0answers
22 views

xml parsing using custom settings or wrapper class [on hold]

Does any one has an example of xml parsing using custom settings or wrapper class? greatly appreciate the response.
2
votes
1answer
41 views

Check for null or key not in map

I tried following the instructions listed here: How to handle maps with no key match but I can't seem to get it work since Postal_Code__c is my key. Right now, everything works as long as the Postal ...
1
vote
1answer
26 views

apex page redirect open desktop layout in saleforce1

im using custom visualforce publisheraction in my controller i used pg = new PageReference('/'+record.id); pg.setRedirect(true); after insert my record. in salforce1 page redirect but open ...
0
votes
0answers
16 views

Replace expression(mergeField) in string with it's value

I'm creating report creator and I need to change {!mergeField} in string to it's actual value, same as it works in email templates. For example 'Hello Mr.{!$User.LastName}' -> 'Hello Mr.Anderson'. How ...
1
vote
2answers
22 views

Updating the owner of records connected via lookup relationship

I was given a task to write a trigger to update the owner of records connected via lookup relationship. Consider i've a custom object which is having a lookup relationship to another custom object. ...
0
votes
1answer
28 views

Showing an exception when saving apex class or trigger from laptop

I am trying to implement an apex class in my developer organization on my laptop but I'm not able to save the class. It gives me this message: Error: Compile Error: unexpected token: 'undefined' at ...
0
votes
1answer
8 views

Novice Question: making a cURL callout from Apex to a 3rd party app?

I'm only familiar with REST and SOAP as API standards, and I'm a novice in general, so pardon my lack of understanding of most of these concepts. I have a web form on a third party heroku app that I ...
0
votes
1answer
22 views

trying to bulkify method

I have the following method that inserts two objects using one insert statement. The second object has a lookup to the first object and I'm using an external Id to create the relationship. Method: ...
0
votes
4answers
33 views

How to Display more than 1000 records in a VF page

Hi I am new to SalesForce, I have tried using its giving me an error as limit 1000. Suggest me some solution. thanks in advance.
2
votes
1answer
21 views

Passing apex var to controller

<apex:form > <apex:variable value="{!0.00}" var="total1"/> <script> document.getElementsByClassName('t1')[0].innerHTML = '{!total1}'; </script> ...
1
vote
1answer
34 views

For Loop Iterating last Value only in Visualforce

I have a SObject list that I am iterating through, so my var="standardOppFields" I created a loop to generate a value for each opportunity. I want to display both the standard fields AND the custom ...
1
vote
1answer
21 views

Why Label of a field fetched via code gives a different value than what is displayed on Page Layouts?

I have tried fetching field Labels dynamically in my Visualforce page and apex class through Field Describe, but its been really annoying for me to fix this situation where field Labels are ...
0
votes
1answer
15 views

Data Access restrictions to Salesforce objects via Apex Web Service

I'm going through this article : https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_web_services_methods_exposing.htm Have few questions regarding access to field/objects/record by ...
0
votes
1answer
22 views

Display dashboard in VF Page

I want top display dashboard in VF page. When I am trying to do it using blank window appear. <apex:iframe src="/01Z28000000Hdzo" > Right now I am doing as per follows. Page - ...
0
votes
0answers
23 views

I have created apex email service class

I have created apex email service class it working fine and i have cofigure with admin.My class create task under that .But i want to do this for all user's in my org.I mean to say if they get email ...
1
vote
0answers
16 views

ASP.net HTTP request with patch method

Example for creating Account curl https://na1.salesforce.com/services/data/v20.0/sobjects/Account/customExtIdField__c/11999 -H "Authorization: Bearer token" -H "Content-Type: application/json" -d ...
1
vote
1answer
10 views

Determine whether current user session is a managed package support user session?

Salesforce only shows debug logs from managed packages if you're logged in via the appropriate "grant support access" feature from your licensing org's licensing console. That's okay so far... My ...
1
vote
1answer
33 views

Unable to save records in Order and Quote through Visualforce page

I'm creating a VF page for Standard objects Order and Quote which will be a replacement for standard new record creation page layout. Since both objects have mandatory Account and Opportunity fields, ...
1
vote
1answer
24 views

What is the diffrence between formula field and Rollup summary in Salesforce?

i have a confusion on whether to go for formula fields or roll up summary fields in some situations. As we can calculate the aggregate values in formula fields also, why/when should we go for Roll up ...