Monthly Archives: July 2010

Differences between the Import Wizard and the Apex Data Loader

Salesforce CRM provides two tools for data migration—the Import Wizard and the Apex Data Loader.

The Import Wizard

is designed for less-technical users and smaller, simple imports of up to 50,000 records. It takes you through the process step by step and displays error messages to alert you to potential record duplications (“dupes”). For more information, go to Help & Training | Importing Data | Using the Import Wizards.

Use the Apex Data Loader

for complex imports of any size. It’s for technical users only. You’ll need access to the API to use this tool, which is included with Enterprise and Unlimited Edition. If you have another edition, you can purchase the API separately by contacting your account executive. The Data Loader doesn’t display error messages to alert you to potential problems. However, this tool includes several features that help make large data imports easier, such as being able to save your mappings. For more information, go to Help & Training | Data Loader.

The table below summarizes the difference between the two tools. The instructions in the remaining steps refer to the Import Wizard.
https://www.salesforce.com/assets/images/campaigns/insights_data_migration_table.gif

Cloud Antivirus – an Anti virus hosted in the cloud

The first question that comes to mind when we talk of the Cloud Antivirus is if the Antivirus is in the cloud how it will protect the PC? Tecnerd.com digs a little deeper to understand what exactly these services that claim themselves as Cloud Antivirus offer.

How Cloud Antivirus is different from traditional antivirus products?

Cloud Antivirus is a cloud based security solution that can be installed and managed from anywhere through a web console.

Since it is a hosted service, it doesn’t require infrastructure investment. You typically have options to delegate your security management to expert service providers.

So it is essentially more about management of Antivirus in any organization that goes in the cloud. There will still be an Antivirus product installed in each PC and laptop you have. However you have options to control the updates, profiles and levels of security from a cloud based control panel. However the installed part on PC is a thin version of traditional antivirus product.

How the Cloud Antivirus is deployed?
Normally the Cloud Antivirus can be deployed in two ways. One in which the user clicks on an email which includes a link that will install the protection agent. The other way is where administrator can push the installation to workstations choosing workstations by name, IP address, IP range or by domain.

What are advantages of Cloud Antivirus?

Cloud Antivirus is service not software and so has follwoing advantages:
No installation required
Update without users intervention – always up to date
Access your account from anywhere
Reduces bandwidth consumption (as large number of workstations look for updates in traditional software)

What are Free Cloud Antivirus?
They are similar to other free anti virus but hosted in cloud. You get advantage of low footprint and up to date packages. An example of free cloud anti virus is Panda Cloud antivirus.

Page Break, Page number and Page layout Styles in Visualforce PDF Templates

1. Page Break
While generating PDF template from Visualforce, if you want to give the page break ,below code snippet is very useful.
You can use the page break style properties to control where the browser will insert a page break. The Force.com PDF content converter will carry that over to the PDF.

<apex:page renderas="pdf">
<div style="page-break-after:always;">
This is page one
</div>
</apex:page>

2. Page layout and Page number
The following snippet shows you have to switch the PDF page layout to landscape and add page numbers to your Visualforce page. Use the below code in CSS of Visualforce page.

@page {
/* Landscape orientation */
size:landscape;

/* Put page numbers in the top right corner of each page in the pdf document. */
@top-right
{
content: “Page ” counter(page);
}
}

Source : Kyle Roche / Pragya Kumari

Messaging.SingleEmailMessage array and sendEmail limits

Problem Statement
The Apex Developers Guide says there is a maximum of 10 sendEmail methods per transaction (page 310). Is this counted by individual message sent, or by line of code executed? Example: What if you have 11 messages in a Messaging.SingleEmailMessage array and call the sendEmail method once using this array? (Each message in the array has slightly different content, which is why I’m not using mass email.)

Solution (Ack : Anand)
The limit is on the number of times “SendEmail(…)” method is called not the number of SingleEmailMessage int he Array. So theoretically you can send 10 x 1000 emails (assuming you have an array of 1000 SingleEmailMessage for every sendEmail call) .