All Questions

3
votes
5answers
1k views

How can I avoid problems when merging Salesforce instances?

My company has 2 Salesforce instances. We built our own instance, and then acquired a company that had a completely different set of nomenclature, routing rules, etc. Both have years’ worth of data ...
5
votes
4answers
272 views

Using the ApexCSIAPI that backs to Force.com Console to pull data

When the Force.com/Developer Console is open and checking for updates I can see it polling the server with Ajax POST calls to https://instance.salesforce.com/_ui/common/apex/debug/ApexCSIAPI. Has ...
3
votes
2answers
946 views

Javascript redirect with Google Analytics cross-domain link

I have a visualforce site, running the Google Analytics asynchronous tracker. So that a customer can log in, we have a redirect from the unsecure, branded site (www.something.com) to the company....
3
votes
1answer
251 views

Salesforce - Time Dependant Workflows

I am currently creating some time dependant workflows and was wondering how the evaluation criteria - on the time dependent workflow action works. Are time dependant workflows re-evaluated on the ...
2
votes
2answers
170 views

How do I access the customer logo in the top left in Apex?

I know that to change the customer logo in the top-left corner of the screen you need to go into Setup -> Create -> Apps. However I am unable to find a reference to this in my Apex class. The prefix ...
11
votes
4answers
19k views

Lookup search not returning results

I'm having an unusual problem where I am unable to search for a particular contact from a contact lookup field on another object. I have full visibility of the contact in question and can search for ...
5
votes
3answers
3k views

calling an actionfunction reloads the page despite giving rerender attribute and says insufficient privileges in sites?

Calling an actionfunction reloads the page despite: return false from the place where we call setting rerender="emptydiv" It says insufficient privileges in Sites (authenticated using partner portal)...
2
votes
2answers
734 views

Session ID in C#

I have a component in C# i'm using for SF integration which all works fine. I currently have a custom C# login screen which uses the entered values to retrieve the SessionID. However, i'd like to set ...
2
votes
2answers
2k views

Error When Creating Formula Field - No Syntax Errors and < 5,000 Characters

Getting this error: Error: Invalid Data. Review all error messages below to correct your data. Formula(s) that reference this field are no longer valid: Syntax error. Found 'end of formula' Saw ...
3
votes
3answers
1k views

Custom CSS in Customer Portal without “repainting” flicker

I've experimenting with the Customer Portal and figured out how to inject CSS and JS via custom code in the header. Unfortunately, on every page load there's a flicker as Salesforce first loads the ...
0
votes
1answer
2k views

How to include data from custom Lookup Relationships in a Visualforce page

I have a custom object: License, this has a Lookup for the standard Account (meaning: an account can have many licenses) and they are shwon on the account page with a related list. On my account page,...
5
votes
4answers
1k views

What are Site.com Shortcomings

I've looked into Site.com and it seems like it has a lot of potential, but it's not quite fully baked at this time. I appreciate that Salesforce seems to be working hard on it and look forward to ...
24
votes
10answers
10k views

Can I compare Profiles?

We have many profiles in our org, and I suspect that some of them are redundant because the person who originally set them up didn't seem to understand the purpose of Profiles (confusion with Roles, ...
3
votes
4answers
4k views

How to compare 2 dates in JavaScript on a Visualforce page?

I have a Visualforce page in which I try to compare 2 dates. The code: <apex:page StandardController="Account"> <script> window.document.onload = new function(e) { alert("{!Account....
3
votes
4answers
5k views

How to print a quote or invoice from salesforce

How do I print a Bill, or an Invoice on a custom object on the click of a button. Things I've thought of Printable view : it does not give me the control to change the formatting Visualforce Page : ...
1
vote
4answers
16k views

Can I create a popup/alert window/message when a SF page loads?

I would like that depending on some criteria's (checkbox, date, name, value) of a certain field/custom field, on an object. Once that object loads, a popup window will appear. an OK button is ...
5
votes
2answers
486 views

How to test Site.com?

I've set up a Site.com site in my developer edition and it looks really good, in the production I know we can map the domains and test the url with site.com licence , but to put up a POC, can we ...
23
votes
6answers
25k views

How can I execute JavaScript on a SFDC Standard Detail Page?

*NOTE: This is not feasible as of the latest SFDC Releases. * I have a requirement to execute some JavaScript on a SFDC Standard Detail page. Specifically we would like to remove the ability for ...
13
votes
2answers
3k views

Using transient keyword to store password in hierarchy custom setting

Per a security review, we've found that the use of transient keyword is required to store variables within custom settings. There's a great link that's been provided to help us get pointed in the ...
24
votes
2answers
11k views

Visualforce Locale specific date format

How can I go about displaying a date that is formatted to a users locale, for example me and my Australian friends use the format dd/MM/yyyy, while the Americans amoung us use MM/dd/yyyy. I know I can ...
7
votes
5answers
17k views

Is there a way to access SFDC API log?

I'm looking for a way to monitor API calls. Specifically when an API update came through. We have a hosting service that sends trial user info to the SFDC lead object through the SFDC API. There ...
3
votes
2answers
2k views

Setting Type of Event or Task via SOAP/REST API

I am looking at Object Reference for Event and Task sObjects and seeing that both have Type and Subject. I wanted to use Type as one of meeting, call, email and Subject as event/task title. But, if I ...
5
votes
2answers
1k views

How do you deprecate a global method in a managed package?

This is semi-related to another question of mine: Is there any way to clean up redundant tabs/settings/pages/etc from managed packages? However, it is a bit different. Once you've added a global ...
1
vote
2answers
742 views

Is it possible to authenticate users with an on-premise legacy system via an iFrame in a Visualforce page?

Anyone here use Force.com User Authentication approach for a composite integration with a on-premise legacy system via an iFrame in a Visualforce page? I can't implement SSO in this scenario for SFDC ...
4
votes
2answers
528 views

Salesforce Standard JavaScript

There are some JavaScript functions used by the standard Salesforce pages that would be useful outside of the Standard pages. For example, the Account page has a "Copy Billing Address to Shipping ...
7
votes
2answers
4k views

Case Assignment Notification Suppression

I am trying to determine if it is possible to suppress the Case Assignment Notification email from within a Before Update Trigger. Or confirm that this is a newly introduced bug since I believe I was ...
2
votes
2answers
1k views

Can I create a bar chart that compares to target or quota?

Is it possible to create a Bar chart on closed opptys, that will also have a value axis (or line or other format) that can be compared to either the user/division quota/target?
8
votes
4answers
10k views

How can I relate Activity to a second object?

Activity has a 'related to' field that links it to an object of various types. I need to link each activity to a Campaign, but also to an Opportunity. However Activity custom fields don't let me add a ...
16
votes
1answer
6k views

What are the best practices for using polymorphism in Apex?

Apex provides at least two different methods for polymorphism (that is, writing code that can use objects of different classes in a uniform way): Standard inheritance-based polymorphism, where code ...
11
votes
6answers
7k 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 ...
22
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
560 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
467 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 ...
11
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
1k 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
520 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
637 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
457 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
2k 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'...
24
votes
2answers
2k 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., ...
10
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 ...
10
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 ...
7
votes
4answers
3k 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
165 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 ...
25
votes
3answers
6k 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 ...
9
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
3k 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 ...

15 30 50 per page