All Questions

8
votes
3answers
4k views

Date input taking into account users time zone offset

I have an input field that is binding to a backing Task in the controller to allow users to enter a date into the ActivityDate field. I'm not interested in any other fields on the Task. I'm just ...
10
votes
3answers
15k views

Is there a maximum value for LIMIT in a SOQL query?

I have 535 Contact records in my Developer account. I am finding that the following query: SELECT Id,FirstName,Lastname FROM Contact LIMIT 205 OFFSET 190 returns 200 records from Database.query(), ...
4
votes
3answers
833 views

Is there any way to clean up redundant tabs/settings/pages/etc from managed packages?

I have a mangaged package that has seen a lot of updates over time. Some parts have become redundant and aren't used at all anymore. However, with SFDC's rules about managed packages, many of these ...
2
votes
1answer
129 views

How can I link to an app's new record interface from a homepage widget?

I want to create a homepage widget for the sidebar that has a button to create a new record in a custom app (which I intent to distribute, so it needs to be a portable solution). I'd like to use a ...
51
votes
6answers
23k views

Can report data be accessed programatically?

Is there any way to access existing reports and their data to be used in apex? Sure, I could write the SOQL manually but if I want it to mirror a specific report I would have to make code changes ...
5
votes
5answers
232 views

Large Enterprise - Salesforce.com Team Formation Advice

Does anyone here from a large enterprise with hundreds/thousands of Salesforce.com users? How is your team currently structured? Do you leverage onshore/offshore model? What type of breakdown do you ...
3
votes
3answers
351 views

Overcoming Database.com latency

I am working on a rather complex application hosted on Heroku and pulling data from Database.com. Because of the way SOQL works, I usually make a number of calls where I would traditionally have made ...
5
votes
4answers
8k views

Error: Could not resolve the entity from <apex:inputField> value binding '{!variable}'

This seems like it should be very simple and I have no idea why it isn't working. I have a VF page with a controller. The controller has the following property (yes, I made sure to save): public ...
14
votes
2answers
4k views

How do you write a unit test for a trigger whose only function is to make a callout?

What is considered a best practice for writing a unit test (to maintain code coverage) on a trigger whose sole function is making a callout (Which also means it has to use a future method)? Neither ...
9
votes
2answers
1k views

Unit test SOQL limit setting up data model

I have run in to this situation where the data model is very complex and since SF doesn't support mocks (e.g., Mockito) there are so many SOQL executions in just setting up the data model (triggers, ...
14
votes
3answers
1k views

Batch Apex in AppExchange package and orgs with related triggers that call @Future methods

Here's the problem: when an org has a trigger that calls an @Future method, any batch Apex that fires that trigger will fail, since you cannot call an @Future method from an @Future method OR from ...
20
votes
8answers
18k views

What is a concise function that formats a (String) decimal into a currency format in Apex?

goal: write the most concise function that formats a (String) decimal into a currency format in Apex. Feel free to trainwreck the code for points, I've kept mine exploded for readability purposes.
2
votes
4answers
137 views

Approval process with AND( OR() ) doesn't seem require all

I thought that should be able to wrap a bunch OR conditions with an AND that would require TRUE from each OR such as this. AND(OR(ISPICKVAL(Apttus_Proposal__Opportunity__r.Sales_Typ__c, "New"), ...
3
votes
3answers
2k views

Can you report or otherwise build list by User License Type?

We have 4 different license types in our org. "Salesforce," "Force.com - One App," "Chatter Free" and "External Who" We have a couple hundred users. I need to build a report that lists who has what ...
9
votes
6answers
3k views

Handling Community Nickname field for Customer Portal registration

We have a customized Force.com Site + Customer Portal for the authenticated portion of the Force.com Site. We have self registration enabled. Currently the nickname and alias fields are required on ...
7
votes
2answers
1k views

When setting up a new Salesforce instance for an organisation, what are the default Salesforce settings that you always change and why?

I would like this to be a community wiki question. When setting up a new Salesforce instance for an organisation, what are the settings, fields, etc that you always change, and why do you change it? ...
3
votes
1answer
1k views

Assignment rules don't run in test class

I am writing a test class for cases. I want to test certain things of course and want to rely on the actual behaviour. Therefore I would like assignment rules to run when inserting test cases. They ...
5
votes
6answers
2k views

Clone SObject Relationships

Is it possible to use a database query to get a set of related records and clone them into new related records. sObject[] sObjectsWithChildRelationships = [SELECT Id, (SELECT Id, myObject__c FROM ...
8
votes
2answers
6k views

Automate the downloading of Data Export zip files

After a Data Export has completed there can be a large number of zip files to download. If there are 80+ files at 130 MB (In Summer 12 the limit has been increased to 512 MB) each and each file takes ...
10
votes
1answer
4k views

Detecting governor limits through apex

Is it possible to programatically detect if you have reached a governor limit? For example, you can make 200 future calls per license per 24 hours. IF you hit that limit SFDC just starts to blow up ...
5
votes
2answers
3k views

How do you change profile level security permissions on an app after it's been installed?

I recently had an app that had been installed a while ago. In the mean time we had created a new profile type which, since it hadn't existed when the app was first installed, didn't have permissions ...
3
votes
1answer
936 views

Can you query/write to a MySQL database from apex code?

Is it possible to work with a MySQL database directly from Salesforce? If not, is the main approach to create some sort of web service to sit in the middle between the two?
8
votes
2answers
2k views

Can you get Apex in a Home page component without using an iframe?

The question is fairly straightforward - is there a way to get apex into a home page component (left side/narrow component) without resorting to loading a visualforce page in to an iframe? I can't ...
5
votes
1answer
1k views

How to change location of username and password in Customer Portal email

I have a very nice branded professional looking HTML email template for the New User Email Template for the email that gets sent for a new Customer Portal user. The issue is that SF just appends the ...
11
votes
6answers
2k views

HTML5 elements vanish when rerendering Visualforce

I have noticed that HTML 5 tags like <section> and <header> disappear from the page when I reRender the page. On initial load of the page the HTML5 elements appear as expected but when the ...
8
votes
5answers
6k views

How to export debug logs?

I spend my days waiting on the Force.com Console and it makes me crazy, I have a pretty nice machine and it still chokes on the details sometimes. Anyways, I saw Loggly had given a presentation at DF ...
43
votes
11answers
27k views

Copy Production data to Developer Sandbox

I'm on Enterprise Edition and only have a developer sandbox... (I really miss my Full Copy sandbox and UE). I need to do some tests against "real" data. I have a strict rule of not testing or ...
5
votes
2answers
649 views

Can someone provide good examples or pointers on how to integrate LDAP with Apex?

Does anyone have examples or pointers on how to integrate LDAP with Apex? We are running Apache DS and are looking to use our existing LDAP system to manage roles in our customer portal. Before I ...
8
votes
4answers
5k views

Can I import child records using the parent's External ID?

I have a bunch of data I want to import into a custom object. I need these records to have a look up to the Account. The Account has an External ID which is also present in the data I'm importing. ...
3
votes
1answer
2k views

Formula to split and wrap text values

I know the following is possible in Apex, but I'm wondering whether there's a way to do it with standard formula fields. Is there a way to split up a value and wrap each bit in other text values? ...
3
votes
2answers
1k views

High Volume Customer Portal user - Insufficient Privileges for non-image Documents

First, I do not have this issue with images since by marking them as Externally Available allows them to be accessed from the ImageServer servlet which does not have this problem. Second, to ...
4
votes
2answers
829 views

Do archived documents in Salesforce CRM content count against storage limitations?

I am loking for info if archived Content counts against storage limitations in Salesforce. Could it be possible that only benefit of archiving Content is having them not displayed in search results ...
3
votes
1answer
2k views

Re-set user.IsPortalEnabled field?

I can't figure out how to set IsPortalEnabled to true, once it has been set to false. Not a critical issue, just trying to increase my knowledge and understanding of the platform. I was playing ...
14
votes
1answer
390 views

Any docs on the permissions of the special InstallHandler package user?

InstallHandler is the interface you implement for a post-install script in a managed package. Per the docs: It runs as a special system user that represents your package, so all operations ...
3
votes
2answers
911 views

Identify or auto-disable Email notifications non-user Email Addresses in Sandbox

I have a number of Email Notifications that are sent to non-users. Sometimes they are contact emails and others it's straight up email address like "MyPoor_NonSalesforce_Coworker@Mywork.com" When I ...
3
votes
3answers
1k views

What would cause “SQLException while executing plsql statement: call sImportLookup.get_by_ext_id_text”?

I am getting the error below when I try to insert a record with an external id: Error: ORA-20000: ORA-06512: at "SNEEZY.SIMPORTLOOKUP", line 850 ORA-06512: at "SNEEZY.SIMPORTLOOKUP", line 823 ORA-...
33
votes
2answers
21k views

Dynamic number of columns in a pageBlockTable

I would like to be able to dynamically control the columns displayed in a page block table. This would mean that if new fields are added to the object the controller and page do not have to be updated....
2
votes
1answer
2k views

Adding percent sign (%) to formula field in quote line items

If I add the Standard field Discount to quote line items than the discount will show up right justified with the percent sign to the right of the value. If I create a Custom field of type Formula(...
7
votes
5answers
12k views

How do we create a popup from VF page?

I have a VF page with couple of buttons. I need to show a popup when one of the buttons is clicked. Something like a modal popup where user has to fill in something or click the cancel button in the ...
4
votes
3answers
2k views

Validating country codes

Our enterprise data systems maintain a list of 2-character country codes that I want to enforce inside Salesforce. I'm having trouble writing a validation rule that successfully does this. The rule ...
4
votes
2answers
7k views

how can we know if an email sent from salesforce is actually sent?

i have an workflow setup to send an email alert. For some reason some emails are not received by the contacts. Is there a way we could identify if the emails were sent or not successfully. I have a ...
18
votes
2answers
6k views

Which B2C option to choose?

A stock Salesforce org is geared toward B2B companies, but I work in Higher Ed and we're B2C-focused. There seem to be three main B2C options available: Person Accounts Nonprofit Starter Pack (NPSP) ...
2
votes
2answers
838 views

Create custom objects from outside of salesforce

Is it possible to create a new object from outside of salesforce? The little bit of research i had done suggests MetaData API should be the way to go? Any other thoughts If somebody has done ...
7
votes
1answer
3k views

Bulk User Administration for Customer Portal

I'm getting ready to do a large-scale Customer Portal implementation that will involve 1000+ CP user accounts. These will typically be added in batches of 40-60 users at a time, usually associated ...
34
votes
3answers
22k views

What standard and custom fields are indexed?

I'm trying to find a proper list of what standard fields are indexed by default in salesforce, as well as under what conditions custom fields are indexed. To start things off I know fields are ...
13
votes
2answers
2k views

Way to identify Salesforce edition using API?

Is there an API method to return what edition current customer is using?
3
votes
1answer
147 views

How can I reference a test Remote Access application while testing my managed package?

In my managed package I have included a Remote Access application that references my external web site to handle various integration tasks including: Product fulfillment requests/cancellations Client ...
14
votes
3answers
12k views

ID for Contact portion of Person Account

Is it possible to get the ID of a Contact which is part of a Person Account? I have a custom object which has a custom field referencing the Person Account, though it seems to be referencing the ...
4
votes
2answers
3k views

Call a @RemoteAction from a custom button

I would like to call an @RemoteAction method from a custom button. I am aware that it is already possible to call a WebService method. The view page of my object is already a visualforce page ...
2
votes
2answers
2k views

Managed package install failed with The first validation error encountered was “{0}”

When trying to install an update for a managed package that I created into a clients Org the install failed with the message: Problem - Validation Errors While Saving Record(s) Detail - There ...

15 30 50 per page