Tuesday, September 16, 2014

Relating Air Conditioning Systems to Business Applications is a Stretch

HowStuffWorks has a good introduction on how air conditioning systems work.  Whether it is a house or a car, the components are similar.  I'm not going to go into too much detail as there is a ton of information available with a quick Google search.

The A/C system has a few main components: the evaporator, the condenser, and the compressor.  There are other parts mentioned in the HowStuffWorks article, but let's focus on these three.  Let's add a fourth component: these three are connected via hoses.

If you have a problem with your A/C, or you simply want to upgrade to a more energy-efficient unit, you will most likely work on one or more of these components, but not the hoses.  Hoses are, at least in a modern house, tucked inside the walls and are hard to replace.

If you had a problem with cooling, you will most likely refill your system with refrigerant from the outside unit, or in the case of an automobile, on the valves along the hoses nearer to the compressor.  If you wanted to upgrade your compressor and evaporator, you will be working on components outside the cabin of your car.

While the technician is replacing components or recharging with refrigerant, he may notice that there are leaks in your hoses, or the connections in between hoses.  But this does not necessarily mean that the new components are defective, or that the refrigerant is bad.  A different component is failing, not the ones he is currently working on.

Similarly, business applications, for example, one for Customer Relationship Management and one for Order Management, are connected by "hoses", in software terms, "Middleware", or more recently "Enterprise Application Integration" software.

If you are making changes on one or both applications, and expect messages to be passed between them, it is entirely possible that the "hose" is broken, and not necessarily that the applications you have changed are broken.

Of course, it is necessary to fix the "hose" in order to test that the messages with the new or updated information is being exchanged.  But, if after a few messages have been successfully sent, and then it breaks, and no new changes were introduced to either application, then the "hose" has a problem, not the applications.

The point is that it is possible that the application changes are correct, and can be considered successful.  The changes can be put into production, while the problem with the "hose" can be addressed separately.  In the A/C world, the technician can still continue to replace the components, and deal with the hose issues separately.


Wednesday, August 20, 2014

Account Name Complications

In a less complex setup, Salesforce Accounts are used solely to track and manage a sales rep's accounts and tie his opportunities to them.  There are less stringent naming conventions, less emphasis on data quality, especially around account names.

Typically, a sales rep will refer to their accounts by their commonly accepted name, or "Trade Name", like Salesforce, or Apple, or Starbucks.

As soon as companies add on certain processes into Salesforce, for example, Quotes and Contracts, a more formal process for names is required.  For example, Quotes and Contracts will typically need the full legal name, like Apple, Inc.  It even gets more complicated when their legal company name is totally different from their common name, or "Doing Business As (DBA)" name.

Start doing business in countries with local languages and special characters, the local sales reps will prefer to record their local language name, as that is their common name, but it becomes a headache for HQ Operations who want to manage and cleanse the information.  And when it comes time for Quotes and Contracts, HQ will most likely require Western character company names.

My current thinking on this is that in Salesforce, the standard Name field will always be the common name, or their DBA, or their local language name.  This makes it easily searchable for the bulk of the field users who are local.  This also means that data cleansing should be handled by local administrators.  Who else would be better to determine whether two records are the same company but a local person?  Alternatively, give the field users the ability to request for merges.  That way you can have a centralized data administrator.

In summary: use Name as the common name or DBA name, and add another text field, Legal Company Name, and maybe a third field for Western Language Name, although you could probably get a way with using the same field if the label is clear enough.  Unfortunately "Other Name" is very vague.





Friday, June 6, 2014

The Long Term View

In the book, The Outsiders, William Thorndike explores eight unconventional CEOs who have beat their industry peers and the overall market returns over long periods through both bull and bear markets.  One of the common threads among these CEOs is their tenure as CEO.  All of them served as CEO for more than 20 years.

In contrast, Dr. Ralph Z. Sorenson, member of the Board of Directors of Whole Foods, said in a recent interview that in his years of reviewing business plans, many describe an "Exit Strategy" along the lines of: "We aim to be bought by a larger company" or "Cash out at IPO".

In a survey conducted in 1999, twenty five percent of Americans believe that the lottery is their best chance at getting rich.

Waiting is hard.  Waiting is boring.  Warren Buffett himself said that his business is boring.  That is why very few people do it.  And yet he is one of the richest people in the world.  And he did not get rich overnight.

There is a saying, "Patience is not a virtue, it is a necessity." Instant gratification is easy, and is preferred by many.  Delayed gratification is more satisfying, but requires a certain mindset.

Many CEOs fall to pressure from Wall Street to demonstrate good results quarter over quarter.  Many of them take the short term view, looking to hold the company shares for a few seasons.  Great CEOs are like small business owners.  They see their business as their livelihood, as a going concern, to increase long term shareholder value, and they act accordingly.  They take the long term view.  They may sacrifice short term profits for long term growth.

Great investors do not buy stocks, they buy stakes in companies.  They become business owners.  They buy the businesses after learning what they can about the company, and conclude that it can create long term value for them. They become involved in the business by continuing to study and analyze them.  And if their conclusion has changed, they are not afraid to sell, even at a loss.

In day to day operational work, the long term view is sometimes overlooked.  In the pressure to deliver results, or to satisfy an immediate need, it is easy to forget long term ramifications of any process change or system change.  What may sound trivial now may result in a greater cost down the road should business climate change.  It then becomes very important to balance short term requirements against long term impacts.

Always, ALWAYS, consider the long term view.


Friday, April 25, 2014

Salesforce: An Alternative to the Banner Visual Force Page

From time to time, there is a requirement to display a warning or a soft error on a Salesforce detail page that will alert the user before an action takes place.  For example, warn the user to complete certain fields before converting a lead.  This allows the user to save a lead with minimal information, but add to it over time until he can convert it.

One way to do this is to create a custom Visual Force page that displays as a banner on top of the detail page.  This page can be controlled by an APEX class that performs all the validations and displays a text depending on the information already on the lead.  It could say "Postal Code is required before converting this Lead."  And that message can be in red, and in a box.  It's great because you can control the look through coding.  The downside is, it's coding.

An old alternative was to use a standard Text field with IMAGE functions, displaying a red flag, yellow flag, or green flag, and an appropriate message.  This link details that solution.  This is a good no-coding solution. However, the text is just as big as regular fields, and can be missed.



If they miss this message, it is frustrating to the user, especially if it is preventing him from submitting for approval, and the only available message is the standard message that it does not meet any approval entry criteria.



It is very cryptic.

Some time in 2010, Salesforce released a new data type, Rich Text Area.  And instead of using a regular field for a warning message, this data type can be used.

First, create the field with an appropriate length, say 1024.  It should be read only to everyone, so that only workflow field updates will populate it.  Then add it to the top of the page layout in its own section.  The section heading can be removed, which is what I recommend so that it behaves like a visual force banner.






The field label cannot be hidden, so label it appropriately, like "Messages".

And now, you can use standard Workflow that fires appropriately based on certain criteria, and put a message in.  For example, if Country is US, CA, UK, and Postal Code is NULL, you can set the Messages field to something like:

"<p><strong><big><span style=\"font-size:26px;\"><span style=\"color:#ff0000;\">Postal Code is required for this country before converting.</span></span></big></strong></p>"


The above formula will be shown on the page like this:



This allows a user to still save the record, and he can come back and add the postal code later.  A little bit of HTML knowledge can come in handy here, but there are a handful of HTML generators online for those unfamiliar.  They may insert unnecessary tags, so the administrator may need to experiment and test to see what looks best.

Always keep in mind that there are limits on the number of workflows and limits on the formula editor.  This is where an admin can get creative to work around these limits.


Monday, April 14, 2014

Salesforce Gotcha! Time-Based Workflow Nuance

I received a complaint that a certain time-based workflow was not firing consistently. I looked at the workflow in question.  This was created by one of the Salesforce Certified consultants earlier on. In summary, it works like this:

Workflow A: evaluated when record is created, or edited and subsequently meets criteria
Condition: Status is X
Immediate Action: Set a Future Fire Date to Today() + 240
Time-Based Action: Send email 1 hour after Future Fire Date

On the surface, this sounds logical.  It even works from time to time.  I checked all records with Status X and they all are in the time-based workflow queue.  But thinking about previous implementations, we know that Salesforce does not guarantee order of execution of workflow actions. So it is possible that the time-based action is being put into the queue, but the Future Fire Date is still blank, in which case, it will not be added to the queue.

I searched the Knowledge Base for more information.  The Time-Based Workflow FAQ did not have definite information about it.  I ended up opening a case with Salesforce Premiere Support.  They confirmed that the above workflow will NOT consistently work.

This is why the Field Update has a new feature to trigger workflow rules after the update.

The correct solution then is to break the workflow above into two:

Workflow A: same as above
Condition: Same as above
Immediate Action: Set a Future Fire Date to Today() + 240
Check the flag on the Field Update to Trigger Workflows

Workflow B: evaluated when record is created, or edited and subsequently meets criteria
Condition: Future Fire Date is not null  (or Status is X)
Time-Based Action: Send Email 1 hour after Future Fire Date

This will now work consistently and no records will be missed.

Friday, April 4, 2014

Salesforce: Completing The Picture

For a sales rep or a manager to have a complete picture, he needs to see the total value of his closed business together with his open opportunities.  It easily tells him how much he's won, and how much is coming in the future.  The third component of this is of course his target.  These three make it easier for him to manage his business or his team.  In this article, we will focus on presenting "won business" to the sales team.

In Salesforce, if all the opportunities are managed by a sales rep, all of them would be in Salesforce.  So a view into closed business would be as simple as a report of all won opportunities.  As a company grows, this may not always be the case.

There could be incoming business that are sold completely through a different channel, like partners or online direct sales.  There could also be run-rate business, incoming orders that are zero to low touch, recurring or non-recurring orders for spare parts, automatically renewing subscriptions, and similar instances that the sales rep does not actively manage.

And that is where the challenge begins.  How do you complete the picture for your sales team to include this type of business?  There are several options to explore:

The first one is relatively simple in Salesforce, but requires manual entry.  Have some data administrators create won opportunities for the bulk of these no-touch closed business, one for each rep or territory.  If you use Opportunity Products, create one line for each product you report on.  They may also create an open opportunity to show future run rate amount.

The advantage of using Opportunities is that all the existing Opportunity-based reports will work with these records.  The standard Forecast module will also work.  The disadvantage of this particular option is the manual intervention required.  The more sales reps there are, the more opportunities need to be maintained.  The more products you have, the more lines need to be maintained.

The next step to this option is to attempt to automate this via a data feed.  A daily or weekly feed from a data store or directly from your order management application can be used to update these same opportunities.

This gives you the advantages of automation, i.e. not needing admins.  It does require building this automation to transform the data into something that the Opportunity object will accept.

Another option is to use a custom Orders object, or use the new standard Order object that came with the Spring '14 release.  This moves you more into standard Salesforce functionality, but still requires either manual data entry or automated data feeds.  For most companies, the order management application is not Salesforce, so building some form of integration is a must.

The other matter to consider is how much of order details do you really need?  Do you copy each and every order individually and all the line items?  Consider that Salesforce has limits on data storage, which is a function of the number of users in your organization.  Also consider how much reporting are you planning to have in Salesforce?  If you have a product hierarchy, and most reports just filter or group by product family, then you don't need SKU level line items.

So far all of these options involve just Salesforce and some integration.  This is fine if your technology strategy is "Salesforce first".  And for a large part of your sales team, this will suffice.

The final option is of course, one that is more sophisticated.  With all the advantages of Salesforce reports & dashboards, being very easy to create and maintain, Salesforce is still not an analytics platform.  Each company will have to evaluate for themselves whether that simplicity is a priority over capabilities that true analytics and business intelligence solutions provide.

This solution will combine all your data, from campaigns, leads to opportunities, to quotes to orders, even to commissions, into a single data store where everyone can run simple reports to the most sophisticated dashboards that combine all these. There are several choices in this space.  A quick Google search will yield new companies as well as established players.

Having a single solution for both sales, operations and back office may make sense for some organizations.  One requirement though would be seamless integration with Salesforce, both from a data perspective and a user experience perspective.  Sales users should not feel that they are jumping into another application.

The advantage of this option is that you get all the capabilities of a true analytics tool.  The disadvantage of course is the expense of the tool and all the integration work required.

Some companies may be better off with a mix of both: a true business intelligence tool AND reports & dashboards in Salesforce.

In summary, there is no one-size-fits all solution.  Each company must decide and balance their priorities, their capabilities and their budgets, and find one that fits them.














Thursday, March 27, 2014

Protect Your Parents Online

A quick Google search of 'protect your parents online' reveals that most sites deal with protecting your kids.  There is very little out there about protecting your parents.  Maybe everyone assumes that they can take care of themselves.

Most likely, they can't, especially online.  My parents are not necessarily tech-savvy.  They grew up before the Internet, before cell phones, before computers were commonplace, before Facebook.  While they picked up basic computer usage, I doubt if they protect themselves online.

Case in point: my mother's Facebook page was hacked into.  A new profile was created, invited the same friends, and subsequently asked for money through a donation.  I wasn't copied on the message, presumably I was excluded as I had the same last name, and I would recognize that something was amiss.

She changed her password since that incident, and hopefully that will be the end of it.

So here are a few tips to protect your parents:
  1. Teach them about strong passwords, about phrases and character replacements, and special characters and adding numbers and mixing case.  This may be an uphill battle.  My mother had created multiple Skype accounts because she could not remember her old password.  She doesn't do online banking, so using the same password to different sites might be okay.  Adding a few words specific to each site could be something that parents will remember.
  2. When I was a kid, my father taught me not to believe everything I see on TV.  I will remind them of that lesson, but in this case, don't believe everything on the computer.  Just recently I read of an older gentleman whose computer was held 'hostage', and the screen said to pay $99 to fix it.  Luckily for that man, he had a good backup, and simply restored an old backup.  And then in the news there are older people who fall for the advanced fee scam.  My mother also taught me that the warnings on chain letters are not true.  I will remind them not to forward anything through email or re-post anything on Facebook as soon as they see one of those.
  3. Teach them about privacy.  Show them how to change their Facebook privacy settings.  Tell them that the exact birth date is not always necessary, and be wary of giving the information to every site they register to.  Tell them there is such a thing as 'over-share'.  And that public posts are just that: public.
 These are just three.  They seem to be the most basic, and will reduce many of the threats our parents may face online.  I'm sure there are more, but if my mother can't remember her Skype password, I doubt she will remember more than three tips.