All Questions

Filter by
Sorted by
Tagged with
11
votes
6answers
8k views

Printable ERD from Salesforce that you can Edit

I built a solution for a customer and I want to pull the ERD from the Salesforce instance and have the ability to edit it. I know there are a few tools and the Schema builder in Salesforce but none ...
23
votes
5answers
6k views

What is an easy (and fast) way to find a object named based on a parentid?

I have an app which is fired from a trigger on FeedItem and FeedComment. I can easily grab the posting user, date, parentid and type. However I am finding it difficult to rapidly determine the object ...
7
votes
3answers
569 views

Is it okay to use a single admin user when logging into the API or do I need to use individual user accounts?

I'm working with a client to develop a PHP based application that has its own login system and content but throughout the application there will be interactive forms which will collect data that we'd ...
6
votes
3answers
546 views

Developer console causes internal system error

I've noticed over the last week or so that when I have the developer console open and am working on my developer orgs that my @RemoteAction methods are returning an internal error from SFDC. Does ...
12
votes
6answers
2k views

How can I avoid Force.com Sites Limits?

http://login.salesforce.com/help/doc/en/sites_limits.htm There are limitations on bandwidth and processing time. Has anyone run up against these limits? How do people mitigate the likelihood of ...
4
votes
3answers
2k views

What are your options if you start to run in to @future method invocation limits?

Salesforce limits all account types to 200 future method invocations per full paid license every 24 hours. Are there any known options to increase this limit? If you start to run in to this is your ...
7
votes
2answers
527 views

Using the Deprecated annotation in a multi-org setting

You can use the deprecated annotation on methods, classes, etc in a managed package so they can't be referenced in future releases. However, you can't have the deprecated annotation in any org other ...
2
votes
2answers
733 views

Workflow not evaluating to true when it should

I have a Workflow on Leads, which is a formula (also tried as a Filter), the content: Days_from_Creation__c = 1 && HasOptedOutOfEmail = False && My_Drip__c = null This is from the ...
3
votes
2answers
475 views

What are the components of Salesforce's built-in CSS URLs?

The URLs for CSS files in Salesforce resemble this: /sCSS/25.0/sprites/1344400715000/Theme3/default/gc/elements.css What does the 1344400715000 refer to, and is there a way to expose that value via ...
7
votes
4answers
3k views

Run anonymous apex as if it were a test case

Is there any way to run anonymous apex so that it is treated the same way as a unit test? Sometimes it would be ideal to just try some code out and know that any DML operations that get performed won'...
32
votes
5answers
3k views

Is there a defacto 3rd party utilities library for Apex such as Apache Commons is for Java?

I have been developing in Java for some time and have grown accustom to using third party libraries such as Apache Commons for some of the more mundane functions needed in most applications (e.g., ...
11
votes
3answers
3k views

Geolocation searching

I'm researching location search (ultimately on a Force.com site). For example's sake, the problem is to dynamically show a user what stores are w/in a certain distance (say miles) of a postal code ...
11
votes
1answer
2k views

Deleting a class without IDE

Salesforce makes it hard to delete classes in a production org. Our change control policy doesn't allow for the use of the IDE to make changes to the production org...everything goes through change ...
10
votes
4answers
5k views

Linking CronTrigger sObjects to Scheduled Jobs listings

When using System.schedule to add apex jobs to the scheduled jobs listing it creates a CronTrigger sObject containing the expression determining when the job is set to run. However this CronTrigger ...
3
votes
5answers
1k views

Visualforce onChange not always rerendering [closed]

I have a visualforce page with a select box that fire off an action that re-renders a section of the page based on the selection. This works fine when you select any of the other options in the list. ...
2
votes
1answer
182 views

Finding Apex classes via the Partner API that contain test cases

How can I determine via the APIs that an Apex class contains test cases? I can query ApexClass, but there is no immediate field indicating the class contains tests. Assuming the body field content ...
10
votes
6answers
2k views

How do you unit test a trigger when you don't know the required fields?

This is another issue addressed largely towards app developers. Let's say I write an insert trigger. When I write the test case for it, what I would normally do is create a new object, insert it, and ...
29
votes
3answers
10k views

What is the Black Tab?

I've recently seen references to a black tab. E.g. BT link to org: https://na2.salesforce.com/00D300000xxxxxx?blacktaboid=00D300000xxxxxx BT link to managed package: https://na2.salesforce.com/...
5
votes
3answers
1k views

Getting LastModifiedDate of Admin changes

Let's say you have a details page of a Contact. I would like to be able to track changes that were made to Contact, such as field name changes, field type changes, etc. I assumed that there ...
10
votes
4answers
5k views

Has anyone done Drag and drop multi-upload functionality for attachments/files?

I'm trying to create a visualforce page where someone can drag and drop attachments to upload them and they can see a preview of attachments that they have already uploaded. There are a ton of jquery ...
8
votes
3answers
4k views

Upcoming "clickjacking" protection

There is a new alert on the Partnerforce portal that is letting partners know of the upcoming "clickjack protection" for non-setup pages in Winter '13. It seems to be stating that if a customer turns ...
9
votes
3answers
5k 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 ...
12
votes
4answers
18k 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
852 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
134 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 ...
54
votes
6answers
29k 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
252 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 ...
4
votes
3answers
367 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 ...
6
votes
4answers
9k 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 ...
15
votes
2answers
5k 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 ...
10
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, ...
15
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 ...
22
votes
9answers
20k 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
145 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 ...
10
votes
6answers
4k 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? ...
4
votes
1answer
2k 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 ...
7
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 ...
11
votes
3answers
9k 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 ...
11
votes
1answer
5k 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 ...
6
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
1k 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
3k 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
8answers
11k 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 ...
48
votes
11answers
40k 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
722 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 ...
9
votes
4answers
6k 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. ...

15 30 50 per page