A platform for creating and deploying applications for the social enterprise. Essentially Salesforce.com without CRM.

learn more… | top users | synonyms

5
votes
1answer
61 views

stackTrace is null within managed code

public class TestEx{ try{ //some code }catch(Exception e){ string errmsg=''; errmsg+=e.getmessage(); errmsg+='\n'; errmsg+=e.getCause(); errmsg+='\n'; ...
2
votes
1answer
50 views

Is this class thread-safe?

I'm trying to prevent race conditions while adding sequential legs to these transactionIDs. Does this look like a thread-safe implementation? // only interact with TransactionCount__c using ...
1
vote
1answer
35 views

Future Callout Unit Tests!

I am testing a SOAP callout. The callout happens on a after insert and after update. The issue that I am facing is that, when I insert or update a record in the unit tests, I can trace that it reaches ...
0
votes
0answers
16 views

Site that should be available to all Internet users gives “Authorization Required” error

I have a site that should be available to any user that hits a site. Debug logs are of no help debugging this issue, as I have tried capturing them while the issue is in process for a user, and there ...
5
votes
1answer
138 views

System.LimitException: DML currently not allowed

When i am adding header component to new visual force page then it is returning exception saying Visualforce Error System.LimitException: DML currently not allowed Class.ExceptionManager.save: ...
2
votes
1answer
46 views

what to write test cases for Site.ChangePassword();

PageReference pf = Site.changePassword(newPassword, verifyNewPassword, oldPassword); This pf object always return null and i am unable to cover the lines after this line.
-4
votes
1answer
26 views

how can i prepare mock test cases for httpresponse?

Here is the code --> public Httpresponse SendXMLRequest(String XMLRequest) { String idOfInsertedUser = ''; try { Boolean opSuccess = false; ...
0
votes
2answers
24 views

What is the difference between Custom Object and Relation Object?

E.g. : Users__c --> Custom Object Users__r --> Relation Object what is the difference between Users__c and Users__r when we are using in the apex code in Salesforce? How will i test the Users_r ...
0
votes
0answers
15 views

How to test ChangePasswordController page code? [duplicate]

PageReference outputText = Site.changePassword(newPassword, verifyNewPassword, oldPassword); try { if(outputText != null && outputText.getRedirect()) //test ...
3
votes
3answers
81 views

Salesforce Code Coverage Percentage Conflict In Production

There is a conflict in the Salesforce code coverage calculation process in Production Environment. When I am going to test all the testcases in the (setup --> Apex Classes --> Run All Test Cases), it ...
0
votes
0answers
21 views

URL Hacking-prepopulate the opportunity's email address for an email template?

Here's the code. it's off a button in the Activity History. How do I get the opp owner's email address to prepopulate into this additional to field? I think what's going on might be a Cross-object ...
2
votes
1answer
38 views

How to replicate case comment functionality in custom object

In a custom object i have a related list called comments. I have to show time at which comment is created and want to show that time stamp next to comment as it was shown in case comment. how can i ...
0
votes
1answer
23 views

Why isn't my account sharing rule showing the opportunities?

Can someone explain the account sharing interface to me in terms of the opportunity and case access? I thought this would let you set sharing rules for opps. Problem: I'm trying to make ...
1
vote
1answer
51 views

Best Way to implement a Questionnaire in Salesforce?

I am new to the platform and have basically gone through the Force.com Workbook and Fundamentals. I have a requirement wherein I need to create a questionnaire. I was initially planning to use ...
1
vote
0answers
29 views

Media Server on Force.com

Is there any media server available on the force.com platform to build, deploy, and manage live and on-demand streaming solutions, like Wowza media server or Red5 media server? Thank you...
1
vote
2answers
90 views

Force.com Migration Tool - How to correctly retrieve & deploy

I'm looking for some guidance on how this tool is widely used. We have the following scenario: Source: 1x Production org, with 1 (or more) managed packages installed. Targets: Multiple Production ...
0
votes
2answers
67 views

How to create csv files in controller method from list

I want to create csv files from lists and send an email attaching them, how to do that in a controller method?
1
vote
2answers
61 views

Not covering the code coverage from following test case?

public with sharing class ChangePasswordController { public String oldPassword {get; set;} public String newPassword {get; set;} public String verifyNewPassword {get; set;} ...
0
votes
0answers
65 views

Problem building SalesForce mobile app : Android [duplicate]

I created SalesForce Native/Hybrid app as in this link. Everything is fine but when I try to run the app by importing it into eclipse, it keeps on popping main activity with following error in ...
1
vote
1answer
39 views

how to compare datetime in salesforce?

How should i compare two datetime in apex class ? After comparison i need to sort this datetime in ascending order. Datetime firstDate = datetime.valueOf(stringdate1); Datetime secondDate = ...
0
votes
0answers
29 views

Force.com facebook toolkit integration

Was using the facebook Force.com toolkit https://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Facebook,_Version_3.0. Followed all the instructions as mentioned in the ...
1
vote
1answer
30 views

limit users on a lookup for a specific record type?

I have a field that's related to users, that's used across record types. Is it possible to limit the users it displays on one of the record types to a certain profile, group, role, etc?
1
vote
2answers
23 views

Do other permissions/ functionality require the view setup and configruation privilege?

All of my profiles have the 'view setup and configuration' privilege in production. The extent of my knowledge on the View Setup and Configuration -is it allows users to view complete Setup menu, ...
1
vote
3answers
35 views

Attachment with html format

This might be solved easily, but cant find a solution.. I have a record with an attachment. This attachment is an HTML file. When I click on the "view" link in SalesForce, it downloads it. Is it ...
2
votes
1answer
98 views

how to give a URL field Link text?

I have a URL field on my object, and i want it to display the "Link Text" not the actual URL, but I can't get the syntax right. <a href="http://www.w3schools.com/">Visit W3Schools</a> ...
2
votes
1answer
62 views

Force.com ide for Eclipse not refreshing reports/email templates from server correctly

My reports aren't refreshing from the server correctly via eclipse. Within eclipse, no matter what I do, I can't get the "subscribed to new reports" to show when I click the box. I've tried the ...
3
votes
4answers
160 views

How do i speed up save, deploy , test in salesforce production?

When i change any data into salesforce code using eclipse and trying to save that then eclipse takes too much time but when i am doing this thing in sandbox it will get saved , deployed and ...
0
votes
1answer
53 views

How Salesforce makes sure that no single tenant consumes majority of CPU cycles?

I am new to salesforce and just into theory as of now. I have been hearing a lot about multi-tenancy architecture which makes me think how do salesforce divides the CPU cycles. I looked into ...
4
votes
1answer
76 views

Force.com (Custom Application) Licensing?

I am not sure this is right forum to ask information about the licensing option & others. For a small organization where there are only 3-5 users, I am planning to develop an custom application. ...
1
vote
0answers
21 views

Phone-to-Case Solution

Is there an existing solution in Salesforce for Phone-to-Case implementation? A client calls a 1-800 support number and the phone system should automatically create a Case in Salesforce? Thanks in ...
2
votes
1answer
73 views

Converting label into textbox in visualforce

I am creating a page.where we search a record based on the given id.the record is displayed along with a edit and save button.The data is displayed onto label.On the click on edit button the label ...
6
votes
1answer
57 views

Enum database mapping in Apex?

I want to work with Enums in my Apex code and I'm wondering what the usual practice is for storing their value in a database. Like java, you shouldn't store the ordinal as an int because that could ...
4
votes
1answer
70 views

Ctrl Click doesn't work in Force.com Ide?

I get used to ctrl+click code assist which would find the declaration of a variable/class/method in Eclipse, Visual Studio, Borland\Embarcadero Delphi. It is an extremely useful feature when dealing ...
4
votes
2answers
34 views

Tracking user currently viewing a record

I have a requirement, If a User has clicked on edit button of a record and is in edit page and meanwhile another user clicks edit on the same record, then I should show a message informing the second ...
0
votes
1answer
51 views

Does exist a way to integrate force.com with JMS (Java Message Service)?

I'm looking information about Java Message Service and how to integrate this technology with Force.com using apex code. Does somebody has an idea of how to do this? Thanks.
3
votes
1answer
79 views

dynamically generate an email template based on a page layout?

we use a lot of email templates for notifying different teams in our org, which creates a lot of overhead in updating the email templates when ever a new field is added. Is there an app out there, or ...
4
votes
2answers
166 views

Single Click reply to Approval Emails

Currently, to approve any salesforce record through email, you have to reply to approval email using Approved/Yes and it gets approve. I just want to skip the step of writing "Approved/Yes" for ...
0
votes
0answers
21 views

This request caused a new process to be started for your application

I have deployed the salesforce app on Google App Engine. When i am going to run this application first time it gives me this error ----> This request caused a new process to be started for your ...
1
vote
1answer
102 views

How to move data from 'Full copy sandbox' to 'Developer sandbox'?

I have activated a 'Full copy sandbox' and created around 15 custom object . In each object I have 20+ custom fields to 65+ custom fields. Now If I create a 'Developer sandbox' how to get all custom ...
3
votes
2answers
195 views

Is there a default TimeZone in which Date fields are stored in Salesforce?

There is a Date Field whose value is I gave as 15th Oct 2014. When I insert the same, Is this an absolute time value irrespective of any Time-Zone; does it matter who inserted the Date field? I have ...
1
vote
1answer
116 views

Uploading and Downloading file by using Salesforce1

I am trying to upload a .csv format file into salesforce.The upload is working fine on browser. using myinstance/one/one.app And I am also trying to download a file in specific format file for ...
2
votes
1answer
54 views

Force.com IDE: what are minimum system requirements?

I would like to know what are the minimum system requirements for Force.com IDE (plugin for Eclipse). Requirements for not just being able to run the IDE but also to use it comfortably and efficient. ...
3
votes
1answer
41 views

Workflows - Are there no logs in Salesforce?

I'm new to Salesforce having previously used Dynamics CRM. I'm trying to create a workflow to send an email when a new Resource is entered. I'm not getting the email, and there don't appear to be any ...
6
votes
1answer
60 views

Can i use code from projects in code share in my apps on app exchange

i know the projects that are on code share in developer force are open source but just want to make sure i don't run into problems by confirming from you guys in the community.
0
votes
2answers
77 views

Login credentials doubt

Recently I shifted my Android code (using this as base) to support app dynamics sandbox account. I am able to login, fetch data from that account through https://test.salesforce.com. There is a ...
0
votes
1answer
41 views

Force.com IDE: Synchronizing with server blocks IDE

I am developing Apex code using Force.com plugin for Eclipse. When I save changes, synchronization with server begins and blocks the entire IDE. It takes up to 5minutes which is too long. Are there ...
2
votes
1answer
82 views

How to know, how List view is sorted?

I want to know the current state of a list view( how it is sorted). Is there is any way we can know in apex how a particular list is currently sorted? Suppose if a list view is sorted in ascending ...
0
votes
1answer
75 views

How to deploy from sandbox to production in salesforce?

We are currently working in a sandbox in salesforce . Now i want to know how i can switch to production environment in salesforce ?
4
votes
1answer
275 views

Eclipse Kepler and Force.com IDE Warning “Package Manifest Content Warning”

Each time I create a new force.com project I receive this warning/error message in regards to Flexipage. I can still create a project afterwards, however Eclipse does not respond for 90 - 120 ...
1
vote
1answer
155 views

Java equivalent for Apex classes [closed]

I am looking for Java equivalent classes for some of the Apex classes like Blob, EncodingUtil, Crypto. I need these to connect and authenticate with salesforce making an API call. I am creatingn a ...