All Questions

Filter by
Sorted by
Tagged with
11 votes
4 answers
14k views

How to query all Chatter Files attached to a record?

We're trying to build a custom Visualforce related list that will show all the Chatter Files that are related to a record. All files should be displayed, regardless of if they are explicitly shared ...
Matthew Lamb's user avatar
4 votes
2 answers
2k views

Test class for Visual Workflow

I have a flow, which shows a list of Opportunities, one by one based on score. This flow has been referenced on a Visualforce page: <apex:page controller="OppPriorityController"> ...
goabhigo's user avatar
  • 344
6 votes
7 answers
6k views

Calculate distance between two places on accounts from a VF page

I looking to find distance between 2 vendors(Accounts). I do have the lattitude and longitude of the accounts. I think i could use the google maps API to get the distance. Anybody worked with google ...
Prady's user avatar
  • 12.2k
4 votes
2 answers
4k views

Recurring Time Dependent Workflows

What is the best way to implement a recurring time dependent workflow? Ex. An action should be performed every year. I've heard of some Button Click Admin tricks where we could use two workflows ...
Joey Chan's user avatar
  • 908
7 votes
4 answers
3k views

Can't use getContent() in a batch, future method, trigger etc

I have a VF page which has a method in the controller that generates PDF and sends it out via email. It's all working fine when I trigger off the method from a custom button on the page, which is the ...
Boris Bachovski's user avatar
5 votes
2 answers
2k views

What can be done by "DOT"? (Black Tab Feature)

I know that Salesforce has a black tab feature where they could "DOT" an Org (Copy data and metadata) to another org. What are your experiences on this? Like what were they able to do with this ...
Joey Chan's user avatar
  • 908
8 votes
2 answers
1k views

Building an App that works in Group & Professional Edition?

What are the considerations when trying to build an AppExchange Application that works for Group or Professional Edition? I understand that there are a lot of Professional edition org and it would be ...
Joey Chan's user avatar
  • 908
11 votes
3 answers
14k views

How can an apex:pageBlockSection be rerendered if it originally has a render value of false?

I am having trouble getting an apex:pageBlockSection to rerender from an apex:actionFunction call if the section is initially not rendered. My goal is to initially hide a section when the page is ...
Brad Ullery's user avatar
  • 1,437
4 votes
2 answers
8k views

Apex Repeat Using Set Collection

My Controller returns a list of strings in a SET variable to Visual force page. I want to use an apex repeat to iterate over the SET collection but when I save the VF page it gives me an error. Is ...
DCBoy's user avatar
  • 901
2 votes
1 answer
489 views

Creating a method that ensures safe HTML input

We're building an app that requires the user to be able to input raw HTML (for a design template) and then be able to display that within SFDC. The challenge we've found in a security process is that ...
user284's user avatar
  • 153
4 votes
5 answers
2k 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 ...
bill P's user avatar
  • 41
5 votes
4 answers
424 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 ...
Daniel Ballinger's user avatar
3 votes
2 answers
2k 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....
Shane McLaughlin's user avatar
3 votes
1 answer
266 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 ...
Jim's user avatar
  • 1,126
2 votes
2 answers
387 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 ...
George S.'s user avatar
  • 2,720
12 votes
4 answers
27k 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 ...
Killian's user avatar
  • 353
5 votes
3 answers
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)...
Sathya's user avatar
  • 3,192
2 votes
2 answers
1k 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 ...
paul's user avatar
  • 147
2 votes
2 answers
3k 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 ...
jackerman09's user avatar
  • 1,893
3 votes
3 answers
2k 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 ...
Benj's user avatar
  • 11.2k
0 votes
1 answer
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,...
Saariko's user avatar
  • 5,581
5 votes
4 answers
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 ...
Peter Knolle's user avatar
28 votes
9 answers
23k 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, ...
Stacey Chale's user avatar
3 votes
4 answers
6k 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....
Saariko's user avatar
  • 5,581
4 votes
4 answers
7k 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 : ...
Shivanath D's user avatar
1 vote
4 answers
20k 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 ...
Saariko's user avatar
  • 5,581
5 votes
2 answers
611 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 ...
Shivanath D's user avatar
26 votes
6 answers
29k 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 ...
CoryCowgill's user avatar
  • 2,193
13 votes
2 answers
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 ...
user284's user avatar
  • 153
27 votes
2 answers
14k 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 ...
Daniel Blackhall's user avatar
9 votes
5 answers
35k 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 ...
Brian Siebert's user avatar
3 votes
2 answers
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 ...
antonlitvinenko's user avatar
7 votes
2 answers
2k 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 ...
Ryan Elkins's user avatar
  • 7,637
1 vote
2 answers
826 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 ...
CoryCowgill's user avatar
  • 2,193
4 votes
2 answers
568 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 ...
Peter Knolle's user avatar
7 votes
2 answers
5k 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 ...
B3Million's user avatar
2 votes
2 answers
2k 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?
Saariko's user avatar
  • 5,581
8 votes
4 answers
14k 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 ...
RickMeasham's user avatar
  • 1,126
18 votes
1 answer
9k 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 ...
Jeff Trull's user avatar
12 votes
7 answers
9k 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 ...
Kris Moyse's user avatar
23 votes
5 answers
7k 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 ...
Texas Rob's user avatar
  • 231
7 votes
3 answers
610 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 ...
Keith Mancuso's user avatar
6 votes
3 answers
655 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 ...
jordan.baucke's user avatar
12 votes
6 answers
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 ...
Peter Knolle's user avatar
4 votes
3 answers
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 ...
Ryan Elkins's user avatar
  • 7,637
7 votes
2 answers
530 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 ...
Rob Scott's user avatar
  • 769
2 votes
2 answers
815 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 ...
Alexandru Luchian's user avatar
3 votes
2 answers
482 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 ...
Benj's user avatar
  • 11.2k
7 votes
4 answers
4k 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'...
Daniel Ballinger's user avatar
33 votes
5 answers
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., ...
Peter Knolle's user avatar

15 30 50 per page