Pages

Wednesday, December 23, 2015

Salesforce: noreply@salesforce.com on behalf of

When you send email from Salesforce, for recipient open the email sent with Microsoft Outlook, the may see the sender as noreply@salesforce.com on behalf of Sender FirstName LastName <emailaddress@domain.com> rather than your name and your email address.


But, when recipient hit reply in Microsoft Outlook, it will point the email to "the right email address" of the sender, not to no-reply@salesforce.com



When recipient open the same email not with Microsoft Outlook, example: using gmail.com, the sender "noreply@salesforce.com on behalf of" is not there. Salesforce is not adding that into the email, that is caused by the email client, which is specific to Microsoft Outlook. Below is screenshot from other email client:



To remove "noreply@salesforce.com on behalf of" follow these steps:
  • Click on Setup | Email Administration | Deliverability 
  • Locate the Email Security Compliance section
  • Unselect the Enable Sender ID compliance box 
  • Click Save button

The emails you send will no longer include the "noreply@salesforce.com on behalf of".




This is how it looks when open from other email client (such as: gmail.com), notice there are no differences before and after we change Sender Id compliance.





Reference:


Friday, December 18, 2015

Salesforce: Win/Loss Ratio

Win/Loss Ratio is always interesting number for a company, by region, by country, until be area manager in a country. It can be either by opportunity quantity or by opportunity amount. In common platform, you need to hire developer to achieve this ratio, developer need to write complex coding, but with Salesforce, as admin, we can create normal report and use Custom Summary Formula with very minimal effort.

The report format need to be Summary, Matrix or Joined report. Side note: you can only add up to 5 Custom Summary Formula in a report.

Here are widely use formula in report related to Opportunity:
  • WON:SUM - number of opportunity Won
  • CLOSED:SUM - number of opportunity Closed (Won + Lost)
  • AMOUNT:SUM - total Amount of opportunity 
  • Record Count - number of record per group

1. Use Case: count Win Loss Ratio by Quantity
CLOSED:SUM/PARENTGROUPVAL(CLOSED:SUM, GRAND_SUMMARY)

2. Use Case: count Win Loss Ratio by Amount
AMOUNT:SUM/PARENTGROUPVAL(AMOUNT:SUM, GRAND_SUMMARY)


* Win / Loss here is a formula field for report display purpose - this is the formula IF(IsWon, "Win","Lost")



Salesforce: Lead Source fields

When adding new Contact or Lead to a CRM system, you would like to note how you get know to that person? That's why by default Salesforce provide standard field or Lead Source is 4 main objects below, and they are picklist fields. You can customize the values based on your organization business model.
  1. Lead - Lead Source
  2. Account - Account Source
  3. Contact - Lead Source
  4. Opportunity - Lead Source
Over the time, you may modify the lead source values accordingly, but to note that: the values of 4 fields above in 4 objects above are in sync, this mean, if you add a new Lead Source value in Lead, it will copy to other objects, the same when you edit, delete and re-order values.

When you convert a Lead to Account, Contact and Opportunity, the conversion value of Lead Source from Lead will bring to Contact and Opportunity Lead Source.


Reference:


Wednesday, December 16, 2015

Salesforce: Assigning Price Book

As in our previous blog Getting Started with Objects related to Salesforce Product, we mentioned that each Opportunity or Quote only link to one Price Book, but can we have configure that not all users able to use all active Price Book?

Yes, we can configure a Price Book to be available by Users, Groups, Roles, Roles and Subordinates, but we not by Profiles.

Here we go:
1. Configure Price Book sharing to "No Access"
Navigate to Setup | Security Controls | Sharing Settings, click Edit button, look for Price Book and change to No Access. By default, Price Book access is "Use".



2. Share the Price Book
Once Price Book sharing setting set to No Access, open the price book and you should see Sharing button in the Price Book page. Click Sharing button, it will show existing User and Group Sharing (if any). Click Add button  to share the price book, and make sure Price Book Access set to Use.



Reference:


Salesforce: Getting Started with Objects related to Salesforce Product

Product is not new features in Salesforce, it has been there for long time and widely used. I see many companies using Sales Cloud, but not use Product. In this blog, I would like to introduce how Product work in Salesforce, from the basic.

1. You can rename it
Some company do not like it called as Product, because not suit to the business terms for the company. As admin or consultant, you can rename it as Service, or Opportunity Line.
  • Go to Setup - Customize - Tab Names and Labels - Rename Tabs and Labels
  • Looks for Products and click Edit link prior to it.
  • You need to enter Singular and Plural name, in this blog, I'll use Opportunity Line
  • Click Save to finish, or Next if you would like to change field label related to Product, by default all "Product" field labels has been rename to "Opportunity Line" for Standard and Other field related to Product.

This will change all label in Salesforce user interface from Product to Opportunity Line, from: Related List name, Tab name, Report Type name, Field name in report, and etc, except the one related with API name and not visible by end user directly, such as: Workflow, Validation Rule, and so on.

Sample of the change happened in related list in Opportunity page layout.
Before:

After:


2. Product is a special object
  • It is not the same with other standard object or custom object, Product is linked to Opportunity and Quote through Price Book.
  • Each Product added into Opportunity in an object called Opportunity Product, so this object would be a junction object. For Product added into Quote called Quote Line Items.
  • You can create roll-up summary field from Opportunity Product to Opportunity, and from Quote Line Items to Quote.

3. Product Object
  • The API name is called as Product2, with object prefix 01t, 
  • To directly access Products tab from Salesforce user interface, go to https://na3.salesforce.com/01t ; change na3 to your Salesforce instance. 

4. Price Book Object
  • You can have multiple price books in Salesforce, each price book may contain different Product and can have different List Price.
Example: a product available in EMEA price book may not available in APAC price book, but available in AMER price book. However, the List Price for AMER price book can be different with EMEA price book.
  • The API name is Pricebook2, with object prefix 01s
  • User with read access to Product and Price Book, user can access Price Book from Price Books tab or directly go to https://na3.salesforce.com/01s ; change na3 to your Salesforce instance. 
  • Each Opportunity or Quote only link to single Price Book. 
  • If there is only a single price book is active, or the user only has Use permission to a one price book, then that price book is automatically selected when user adding products to Quote or Opportunity.
  • If user has Use access to more than one active price book, user must manually select a Price Book prior to adding products to Opportunity or Quote.
  • If user has Use access to more than one active price book, user able to change selected Price Book for the Opportunity or Quote, but all Products added will be removed.




Reference:


Monday, December 14, 2015

Install MavensMate for Salesforce Admin

When you read this blog, MavensMate creator has decided to end development and support of MavensMate, but that does not mean we cannot use MavensMate anymore.

Force.com IDE - a powerful client application for creating, modifying and deploying Force.com applications. But for some people, like my case, the IDE not really working smoothly with my office machine which is still with Windows 7 32-bit. In many times (often), it just hangs when try to select more components to the project. Some other users said that Force.IDE is so clunky and finicky. The other user looks for faster IDE at getting metadata and more user-friendly. Eclipse is slow to load and tends to get heap size limits with an org of bigger metadata size.

Recently I found another Open Source IDE for Salesforce.com (it is free), it called MavensMate. As in their website now - it works with OSX (10.8+), Windows (Server 2008, Windows 7, Windows 8), and Linux (Ubuntu 14). Although it doesn't say Windows 10, I just try and it works well.

I read a blog say MavensMate installation for OSX is a breeze, but not for the Windows machine. I found myself takes sometimes to get this installed, the installation guide from the website is not really detail - MavensMate Getting Started.

Before I explain step by step to install MavensMate, for Salesforce Admin, IDE is not always just for developers, although it is mostly designed for that purpose. Example, with IDE you can easily search where a field used in the reports (of course not include reports in user personal folders).

1. Download Sublime Text
Use only version 3 (or above), download from here.

2. Install Package Control
Once you have Sublime Text installed successfully, go to this link to copy Python code to install Package Control to Sublime Text console.
From Sublime Text, open the console via the ctrl+` shortcut or the View > Show Console menu. Paste the Python code copied earlier and press enter, this will install Package Control. Monitor the console log until installation finish, this process should be very fast - less than 1 minute in my case.



3. Restart Sublime Text
You will need to close and open Sublime Text manually to finish Package Control installation.

4. Install MavensMate
- Open Package Control with Ctrl + Shift + P and type install 
- Select the Package Control : Install Package


- Type mavensmate and press enter 

5. Download and install Mavensmate Desktop
Because of MavensMate is no longer develop and support, you can download MavensMate Desktop from Github. There is an option for portable installation too, so you just run the MavensMate.exe file when need it.


6. Setting Workspace
Now, MavensMate is installed in your Sublime Text. Next, you need to set the workspace for the user in MavensMate. From MavensMate Desktop, select Settings, you can set the path where you want to store all files related to MavensMate project.


Make sure the path is valid and the user has full access to the path entered as a workspace.

6. New MavensMate project
From menu MavensMate | Project | New Project... system, for an unknown reason, the system may ask you to update MavensMate, navigate to  MavensMate | MavensMate API (mm) | Update MavensMate API (mm). You need to close and open Sublime Text again.
Once this done, click new project again and it should open a web browser to enter Project name and login credential, you may need to click Advanced and Project Metadata tab to make sure all metadata you need is selected.




Based on Metadata selected upon project creation page, the metadata will be shown at the left side.



You also can Edit Project to add/remove metadata selection for the project.



From here, if you would like to search for something, example: a field name, right click on project name or Ctrl + Shift + F to open search window.



The search result will be shown in the find results, from: apex class, reports, object (including field, validation rule, help text), etc based on selected metadata.




Reference:


Page-level ad