Pages

Monday, March 7, 2016

Salesforce: Role Hierarchy versus Manager

In Salesforce, we can define Role Hierarchy and Manager for a user. In many cases, Manager is the same user with the user defined one role above on the Role Hierarchy. But, it does not always have to follow Role Hierarchy.

Manager can be someone from other role hierarchy. The most important, out of the box - there is NO direct relationship between Manager with Role Hierarchy, so do not expect when you change role hierarchy of a user, the Manager will be auto changed.

Role Hierarchy
Salesforce offers user role hierarchy that can be use for sharing settings. This is to determine the levels of access that users have in Salesforce. This define user permission to access a record, usually user in higher role hierarchy have the ability to read, update and change record owner of records owned by users below the role hierarchy.

Role hierarchy also determine report generated when user run report configured for My team. Dynamic Dashboard would be the other usage of role hierarchy, user only able to user in below role hierarchy as running user.

Manager
This field is especially useful for approval processes workflow.


There are 2 validation rules defined by Salesforce when you set a user Manager:

1. Cannot report to itself (the same user)
Error message: A user can't be his or her own manager

2. Cannot be a user that report directly to that user
example: A report to B, so B cannot report to A.
OR user report to other user in child record,
example: A report to B, B report to C, so C cannot report to A.
Error message: You cannot set a hierarchy field to point to itself or a child record




Side Note: the same logic applied when you set parent and child Accounts.



Reference:



Friday, March 4, 2016

Salesforce: Opportunity Team Report

Previous blog discussed about reports related to Account Team, this blog is the continuation discussed on Opportunity Team.

If your company practice team selling, you can enable Opportunity Team in Salesforce from Setup | Customize | Opportunities | Opportunity Teams | Opportunity Team Settings, then select Enable Team Selling.

When running an opportunities report, you have several choices in the standard filter area that allow you to choose what types of records should be searched. Once Opportunity Team Selling feature enabled, you will have additional options when running Opportunity report.

This is options available before enable Team Selling

This is options available after enable Team Selling


The list below identifies what each choice means and how it affects the scope of your report data:

My opportunities:
ONLY the opportunities you OWNED.

My team-selling opportunities:
ONLY the opportunities where you are on the SALES TEAM.

My team-selling and my own opportunities:
Opportunities OWNED by you & opportunities where you are on the SALES TEAM.

My team's opportunities:
Opportunities OWNED by you & users who report to you in the role hierarchy.

My team's team-selling and their opportunities:
Opportunities OWNED by you & users that report to you in the role hierarchy, ALSO opportunities where you & users who report to you in the role hierarchy are on the SALES TEAM.

All opportunities:
ALL opportunities visible by the user who run the report.


Note: When Opportunity Split enabled, opportunity owner will be automatically added into Opportunity Team with role = Opportunity Owner, read this blog.


Reference: Opportunity Reports: Opportunity Team Selling



Tuesday, March 1, 2016

Salesforce: Account Team Report

If you would like to report on Account Team in Salesforce, there is a report type provided by Salesforce, use the Account with Account Teams


The difference with the standard Account report type, this report type has information of Account Team Name (which is user name) and Team Role, but it must have Account Team, otherwise, the Account will be not in the report generated.

Account Team is a child object of Account, so if there are multiple Account Team for an Account, it will show as multiple rows for each Account Team in Tabular report.

In the Account report type, there are 4 options (not including All), while for the Account Team report type, there are 5 options to show (not including All).

Account report type:

Account Team report type:


We'll discuss the result for each option, but before that let's use the following org chart in this blog:



Here are the users in the role hierarchy and we'll log in as Maria Ann:
  • Jack Bob - CEO
  • Maria Ann - General Manager
  • Linda Yie - Supervisor 1
  • Free Man - Staff 1
  • Song Lee - Staff 4

My accounts: ONLY accounts you OWNED.

For Account report type

For Account Team report type

** My Inc is the only account owned by Maria Ann with Account Team, it is shown as 3 rows because there is 3 Account Team 
(user) for that Account.


My accounts team's accounts: ONLY accounts where you are in the Account Team.

For Account report type
** Maria Ann is the Account Team in these 2 accounts.

For Account Team report type
** This is exactly the same Accounts, it is just Firing Air has 2 users in the Account Team


My accounts team and my accounts: Accounts you OWNED & accounts where you are in the Account Team.

For Account report type
** This is a combination of My accounts + My accounts team's accounts for Account report type

For Account Team report type
** This is a combination of My accounts + My accounts team's accounts for Account Team report type


My team's accounts: Accounts you OWNED & accounts owned by all of your subordinates in the role hierarchy.

For Account report type
** This is all accounts owned by Maria Ann and her subordinates.

For Account Team report type
** This is all accounts owned by Maria Ann and her subordinates with Account Team

Compare the same Account Team report type run by Jack Bob - the CEO
** Account owned by Jack Bob not in the report when run by Maria Ann


Additional for the Account Team report type, there is an option called My team's accounts team and their accounts:
- Accounts you OWNED & accounts owned by all of your subordinates in the role hierarchy, plus
- Accounts where you or your subordinates in the role hierarchy are on the Account Team

** This report will skip Account with Account Team, where the Account owner is in the higher role hierarchy of running user, or all Account Team are in the higher role hierarchy of running user

Compare to the same report run by Free Man - Staff 1
** Big Corp and Firing Air is not here because neither the owner and the Account Team are owned by Free Man (and his subordinates - none in this case). My Inc will show 3x although only 1 Free Man there, this looks from My Inc perspective with the Account Team. 


Notes: when Territory Management is enabled, for report type = Account, you will have an additional option to show:
- My territories' accounts
- My territories' team accounts




Reference: 

Wednesday, February 24, 2016

Salesforce: Process Builder Criteria

When you configure Workflow in Salesforce, if you need to configure the workflow only trigger upon creation or update on certain field to a value, we use rule criteria formula evaluates to true.

We can use the same way in Process Builder, see sample screenshot below:


However, Process Builder come with more advance (and easier) technique without the need to use ISNEW() and ISCHANGED() formula.

When you are in define criteria, you can simply use Conditions are met and select the fields value condition to trigger the process. But, make sure you click Advanced and select Yes in Do you want to execute the actions only when specified changes are made to the record? Otherwise, this process will keep trigger even there is no such need to trigger it.

When you select yes, the actions are executed only if the record meets the criteria now but the values that the record had immediately before it was saved didn't meet criteria. This means that these actions won't be executed when irrelevant changes are made - this will covered on record creation and record update.




With this simple conditions, it will do the same as you use ISNEW() and ISCHANGED() formula.


Friday, February 19, 2016

Salesforce Success Community: celebrating TWO MILLION MEMBERS!!!



As of 1:20 PM PST on January 25, 2016 - Salesforce Success Community hit 2 million strong members, this is community success and the celebration of success!


What is this mean? This is not total number of users in the world using Salesforce, but this is number of users registered in Success Community - http://success.salesforce.com. You need to have access to Salesforce paid version or Developer edition to test or build something.

As a Salesforce user, when you click Help & Training link, you will be bring to https://help.salesforce.com/home, notice here you will find:
  • Answers: where you can ask questions anything under the sun related to Salesforce. But before post question, make sure to search existing questions. Someone else may have asked the same / similar questions, and someone else from community may have answer, and note for answer marked as best answer. But if no similar question exist, post your question and please provide most complete information, it would be better if you can provide screenshot, so other users in community can understand what is your issue or what are you try to achieve. Note: user here is not Salesforce support, so we do not have access to your Salesforce org. Once your question has been answer correctly, do not forget to come back to the community to mark best answer, it will be help other users in the future with similar questions.
  • Collaboration: this is similar with your internal Chatter, there is feed, people, group, and etc. But, I think Group is the most important one, where you can post specific question related to a topic, such as: Salesforce Workflow Automation, Release Readiness & Feature Adoption, ButtonClick Admin, Success - Premier Central, Salesforce for Outlook & App for Outlook, and many more. In many occasion, the respective Product Manager will monitor the group and answer your post.
  • User Group: you meet your fellow user group members in your area/city in monthly or bi-monthly or quarterly meetup, but here you can meet them online, you can ask question or share information related to Salesforce 
  • Ideas: once of the reason Salesforce become such a great products with so much features is because they are listening. As Salesforce admin, sometimes I hit limitation that not able to configure something. IdeaExchange is the place for us as user to post Idea need to be available in Salesforce. Same as Answers, make sure you search existing idea before post, so we not create duplication. if the idea is exist and has not delivered, make sure to vote it. Each vote will add 10 points. Once it hit 2500 points, it will go to related PM for review.

For me,  Salesforce Success Community is a place where I spend my free time. I stay active in the community and it helps me to learn more and more about Salesforce. I learn more about the business requirements, solutions and best practice from other members. If my organisation has similar requirements in the future, I will already know the possible best solutions.

Local User Group
There are many kinds of Salesforce user groups nowadays, from admin user group, business user group, developer user group, women in tech user group, industrial specific user group. But, if you do not find a Salesforce user group close to your area, start a Salesforce user group for your city, or user group for your industry, or user group for your vertical.

Already have plenty of groups around you? Co-lead one or just help out!


Takeaway
Maybe you have not actively involved in community, but hopefully you should start thinking about the interest in getting more involved in the community, whether online or in user group meetup. There are a ton of benefits that you not feel immediately, but for long run, you will know more people for networking, more knowledge in the platform, and remember that Salesforce technology is keep evolving.


Feel free to reach me or any community members if any questions about Salesforce community, do not forget share your story, your experiences as well and hope to “see” you soon out there!

Congratulations Salesforce for crossing 2 millions strong community members and the number keep counting  #Success2M



Monday, February 15, 2016

Salesforce for Outlook: Add Email

When Add Email and Side Panel is enabled in Outlook Configuration under Salesforce setup menu: Setup | Administer | Desktop Administration | Outlook Configurations. User will be able to add email open in Outlook to a Salesforce record: Account, Contact, Lead, etc from side panel.


User just need to click envelope with plus icon next to the record, for this sample I will use Account.

Once email added to Salesforce record, in Outlook:
  • Added to Salesforce text show below email subject, even the email have been closed, open the email will show the message.
  • Email added to record name in Salesforce for Outlook Side Panel



While, in Salesforce, a Task record created with fields populated:
  • Subject = Email:[email subject]
  • Comments = email body
  • Type = Email
  • Status = Completed
  • Task Due Date = the email sent/received date (see red arrow in image above)
  • Relate To / Name = depend on the record email added
  • Created Date & Last Modified Date = when email added to Salesforce

When user open the Account, scroll down to Activity History, you should find the email added as a closed Task.





Page-level ad