Salesforce “activatable” features via Customer Support

Here are some of the features that Salesforce can activate by requesting it via Customer Support:

General Salesforce Features

  • Enable Person Account
  • Translation Workbench

For more information on the documented features you may click here.

Here are some of the undocumented features that you can request via customer support:

  • The ability to ‘DOT’ an Org i.e. copy data + metadata
  • Allow access to the Data Loader in Professional Edition Orgs
  • Disable Auto Number increasing in test classes
  • Increase the standard daily email limit temporarily (up to two weeks)
  • Disable security tokens
  • Increase the number of rollup summary fields on objects
  • Increase the limit in the number of daily submissions for the Web-to-lead functionality
  • Increase the limit on the number of External Id/Unique fields for upserts
  • Increase the amount of Apex code storage over the 2MB limit

For data migration purposes:

  • Enable API for Professional Edition Organizations for free
  • Allow edits on the Last Modified and Created By fields

Please do comment below so that I could add them into the list.

Credits:


Salesforce report links

Report List in XML

Salesforce doesn’t provide a native way to get the report information via Apex or VisualForce but there is a way to get the list of reports in XML. From the XML result, you can just parse the contents and

https://INSTANCE.salesforce.com/servlet/servlet.ReportList

If you need to embed a report into an iFrame to be shown in a VisualForce page you may use the following parameter to show the report without the header:

https://INSTANCE.salesforce.com/REPORT_ID?isdtp=mn

Direct links to export the report

Export as csv:

https://INSTANCE.salesforce.com/REPORT_ID?isdtp=mn?export=1&enc=UTF-8&xf=csv

Export as excel:

https://INSTANCE.salesforce.com/REPORT_ID?isdtp=mn?export=1&enc=UTF-8&xf=xls

Printable view:

https://INSTANCE.salesforce.com/REPORT_ID?excel=1

Notes:

  • Make sure to change the INSTANCE (Ex. na1, na6, na7.) and the REPORT_ID (Ex. 00O80000003lfzv)
  • These are undocumented features so Salesforce can change these anytime.

Credits:


Hiding the Salesforce Logout Branding in Force.com Sites

In the Salesforce Summer 2011 release, a new Salesforce branded page was introduced that shows up whenever the user logs out or when redirected to /secur/logout.jsp. Some companies that use the Force.com Sites doesn’t necessarily want to show that they are using Salseforce so here is a trick that you can implement to hide the branding while still being able to logout properly.

1. Build a new page called myLogOut and add the following VisualForce code into the page:


<apex:page showHeader="false" sidebar="false">

<apex:iframe src="{!$Site.Prefix}/secur/logout.jsp" height="1" width="1" />

<script>

function redirectToLogin(){

window.parent.location="{!$Site.Prefix}/CM_Login";

}

setTimeout("redirectToLogin()", 5000);

</script>

Logging out...

</apex:page>

The code loads the branded logout page hidden in the background for 5 seconds before being redirected to the login page. This ensures that the page has been loaded properly and

2. Change all references to the logout URL from redirecting to /secur/logout.jsp into $Page.myLogOut

This should fix any branding issues that you might encounter


Formatting numbers or dates with VisualForce

In most cases we can rely on inputField component to do the Currency or Number formatting for us. The problem comes in when we use of wrapper classes that contain primitives where we need to format the data ourselves.

Here are some tips that you can use to format numbers/currencies/dates in VisualForce.

Currency

With two decimal points – (Ex. $10,000.00)

<apex:outputText value="{0, number,$###,###,##0}"><apex:param value="{!mycurrency}" /></apex:outputText>

Without decimal points – (Ex. $10,000)

<apex:outputText value="{0, number,$###,###,##0}"><apex:param value="{!mycurrency}" /></apex:outputText>

Numbers

With two decimal points – (Ex. 10,000.00)

<apex:outputText value="{0, number,###,###,##0.00}"><apex:param value="{!mynumber}" /></apex:outputText>

Without decimal points – (Ex. 10,000)

<apex:outputText value="{0, number,###,###,##0}"><apex:param value="{!mynumber}" /></apex:outputText>

Date

Date in MM/DD/YYYY format (Ex. 01/01/2011)

<apex:outputText value="{0,date,MM'/'dd'/'yyyy}"> <apex:param value="{!mybirthday}" /> </apex:outputText>

Date in YYYY-MM-DD format (Ex. 2011-01-01)

<apex:outputText value="{0,date,yyyy-MM-dd}"> <apex:param value="{!mybirthday}" /> </apex:outputText>

More information:

The only problem I have with this approach is when dealing with multiple locales and currencies. Feel free to comment for any suggestions or requests for format so that I can add it in.

Hello world!

Hello everyone!

This will be my first ever blog post. Looking forward to sharing tips and tricks that I’ve learned throughout the years in working with the Force.com Platform