Sunday, 18 January 2015

Choose Your Best Rounding Policy in Microsoft Dynamics CRM

In my previous post, I have explained about pricing method in Microsoft Dynamics CRM, now in this post, we will see how the Rounding Policy will affect your Pricing in Opportunity, Quote, or whatever Product Pricing needs to make.

In CRM, there are 3 types of Rounding Policy:

1. None
2. Up
3. Down

Rounding Policy option will be available if only you use the Pricing Method other than Currency Amount, because, other methods are using percentage, not an exact amount like in the Currency Amount.

Let’s get started.

Rounding Policy will not be available to choose if the Pricing Method is using Currency Amount

image

None

This is the easiest option, you will give only the price with the percentage calculation like in my previous post, then it will give the same price, no rounding at all.

Example:
Here is my pricing

image

I have set Current Cost to $599.00

I set the pricing Method to the Percent Markup – Current Cost with percentage = 25%
Rounding Policy to None so there will be no Rounding Option and Round Amount enable

So I expect I will get the 125/100 * 599 = 748.75

Then this is in the Opportunity Product Line:

image

I get the amount without any rounding and since I get good price number because I put 2 decimal supported.
None – Will give the same amount without any rounding with defined decimal supported

What if I set to Up or Down?

Once I select the Rounding Policy to Up/Down, I need to provide the value from this option list:

image

Ends in or Multiple of, what is the difference?

Up

Let’s we choose the Up as the Rounding Policy.

Ends in

image

I set:

Rounding Policy to Up
Rounding Option to Ends In,
Rounding Amount to $15

Now here is the result:
image

Why $815?

Let’s get another settings:
I set the amount to $15, $10, and $99

And see the result

$10
image

$99
image

Now, do you notice the Pattern?
Actually, if you notice, the pricing was coming from the rounding and find the nearest point.

Let’s examine the pattern together:
I make some research and put the data into this table?

Rounding Policy Rounding Amount Amount (before) Amount (after)
None - 748.75 748.75
Up 0 748.75 749.00
Up 0.1 748.75 749.10
Up 0.5 748.75 749.50
Up 0.75 748.75 748.75
Up 0.85 748.75 748.85
Up 0.99 748.75 748.99
Up 1 748.75 751.00
Up 2 748.75 752.00
Up 3 748.75 753.00
Up 4 748.75 754.00
Up 5 748.75 755.00
Up 10 748.75 810.00
Up 15 748.75 815.00
Up 25 748.75 825.00
Up 50 748.75 750.00
Up 89 748.75 789.00
Up 99 748.75 799.00
Up 100 748.75 1100.00
Up 200 748.75 1200.00
Up 500 748.75 1500.00
Up 800 748.75 800.00
Up 900 748.75 900.00
Up 1000 748.75 1000.00
Up 10000 748.75 10000.00

What pattern can you notice from this profound example?
Up – Ends in Will get the next (higher) nearest rounded up amount with the same ‘ends in’ amount set in the Rounding Amount setting defined in the Price List, for example the nearest amount from 748.75 that ends in with 99 is 799, while the next nearest amount that ends in with 0.99 is 748.99 and if set to ends in 0.75, the nearest higher point is 748.75 itself, and so on.
CRM will find the next nearest amount ends in with amount defined in the Rounding Amount before..
See the above table and notice the bold ones to get more understanding..
Tips: Select this option to have the price end in the amount set in the Rounding Amount field.
If you don’t want to get trouble with cent (after comma), just put 0 as the rounding amount or 99 to ‘attract’ your customer Smile

Multiple Of


Same as the previous “Ends In”, let’s we make the same steps, now move on to the table directly.

*But, you cannot set to 0, you will receive this error message.

SNAGHTML56af2e6

So, I add the 0.01 as the lowest one.

Rounding Policy Rounding Amount Amount (before) Amount (after)
None - 748.75 748.75
Up 0 748.75 N/A
Up 0.01 748.75 748.75
Up 0.1 748.75 748.80
Up 0.5 748.75 749.00
Up 0.75 748.75 749.25
Up 0.85 748.75 748.85
Up 0.99 748.75 749.43
Up 1 748.75 749.00
Up 2 748.75 750.00
Up 3 748.75 750.00
Up 4 748.75 752.00
Up 5 748.75 750.00
Up 10 748.75 750.00
Up 15 748.75 750.00
Up 25 748.75 750.00
Up 50 748.75 750.00
Up 89 748.75 801.00
Up 99 748.75 792.00
Up 100 748.75 800.00
Up 200 748.75 800.00
Up 500 748.75 1000.00
Up 800 748.75 800.00
Up 900 748.75 900.00
Up 1000 748.75 1000.00
Up 10000 748.75 10000.00
Up – Multiple of Will get the next (higher) nearest rounded up amount with the most possible ‘multiple of’ amount set in the Rounding Amount setting defined in the Price List, for example the nearest amount from 748.75 that is multiple of 1 is 749, because 748.75 cannot be evenly divided by 1 without any left number and the nearest rounded up amount that is perfectly divisible by 1 is 749.
Other example, while the next nearest amount that is multiple of with 0.99 is 748.99 and if set to ends in 0.75, the nearest higher point is 748.75 itself, and so on.
CRM will find the next nearest amount that is multiple of amount defined in the Rounding Amount before..
See the above table and notice the bold ones to get more understanding..
Tips: Select this option to have the price determined as a multiple of the amount set in the Rounding Amount field.
If you don’t want to get trouble with cent (after comma), and want to get the exact amount, just put 1 as the rounding amount because only exact number that is exactly and absolutely divisible by 1.
If you want to sell the similar products with similar price and you want to put branding in your store, for example All is 999, then just put 999 as the Rounding Amount setting. So, whether the current cost after markup is 599, 749, 750, 899, or 999, the rounded up price will be 999.
Now, let’s talking about the ‘Down’ with same concept of the Up.

Down

Let’s we decipher by each Rounding Option again.

Ends In

Same as the statements for the ‘Up’, let’s go to the table directly.

Rounding Policy Rounding Amount Amount (before) Amount (after)
None - 748.75 748.75
Up 0 748.75 748.00
Up 0.1 748.75 748.10
Up 0.5 748.75 748.50
Up 0.75 748.75 748.75
Up 0.85 748.75 747.85
Up 0.99 748.75 747.99
Up 1 748.75 741.00
Up 2 748.75 742.00
Up 3 748.75 743.00
Up 4 748.75 744.00
Up 5 748.75 745.00
Up 10 748.75 710.00
Up 15 748.75 715.00
Up 25 748.75 725.00
Up 50 748.75 650.00
Up 89 748.75 689.00
Up 99 748.75 699.00
Up 100 748.75 100.00
Up 200 748.75 200.00
Up 500 748.75 500.00
Up 800 748.75 800.00
Up 900 748.75 900.00
Up 1000 748.75 1000.00
Up 10000 748.75 10000.00

As we can see, the final price will be the amount with the nearest rounded down amount defined as the Rounding Amount, same as Rounding Up method, but this will be finding the lower amount, previous amount prior to the calculated amount before any rounding.

This is also useful if you want to sell item to the bottom price, for example I set to $800, no matter it costs. Less than 800 also will give 800 because the most possible rounded down to get 800 if the amount is less than 800 is 800 itself.
Down – Ends in Will get the previous (lower) nearest rounded down amount with the same ‘ends in’ amount set in the Rounding Amount setting defined in the Price List, for example the nearest lower amount from 748.75 that ends in with 99 is 699, while the nearest amount that ends in with 0.99 is 747.99 and if set to ends in 0.75, the nearest higher point is 748.75 itself, and so on.
CRM will find the nearest preceding amount that ends in with amount defined in the Rounding Amount before..
See the above table and notice the bold ones to get more understanding..
Tips: Select this option to have the price end in the amount set in the Rounding Amount field.
If you don’t want to get trouble with cent (after comma), just put 0 as the rounding amount or 99 to ‘attract’ your customer Smile
See this summary table of the Ends In Method.

Base Amount Rounding Amount Rounded Amount (Up) Rounded Amount (Down)
748.75 0 749.00 748.00
748.75 0.1 749.10 748.10
748.75 0.5 749.50 748.50
748.75 0.75 748.75 748.75
748.75 0.85 748.85 747.85
748.75 0.99 748.99 747.99
748.75 1 751.00 741.00
748.75 2 752.00 742.00
748.75 3 753.00 743.00
748.75 4 754.00 744.00
748.75 5 755.00 745.00
748.75 10 810.00 710.00
748.75 15 815.00 715.00
748.75 25 825.00 725.00
748.75 50 750.00 650.00
748.75 89 789.00 689.00
748.75 99 799.00 699.00
748.75 100 1100.00 100.00
748.75 200 1200.00 200.00
748.75 500 1500.00 500.00
748.75 800 800.00 800.00
748.75 900 900.00 900.00
748.75 1000 1000.00 1000.00
748.75 10000 10000.00 10000.00
In Common practice, rounding down method is very seldom, especially if choose from Costing, to get better result, it is highly recommended to use Round Down using the List Price or increase the markup or margin of current cost/standard cost is better. Using List Price as the base for rounding down is better because at least no penny will be lost here.

Multiple Of

Let’s move on to the table directly.

Rounding Policy Rounding Amount Amount (before) Amount (after)
None - 748.75 748.75
Up 0 748.75 N/A
Up 0.01 748.75 748.75
Up 0.1 748.75 748.70
Up 0.5 748.75 748.50
Up 0.75 748.75 748.50
Up 0.85 748.75 748.00
Up 0.99 748.75 748.44
Up 1 748.75 748.00
Up 2 748.75 748.00
Up 3 748.75 747.00
Up 4 748.75 748.00
Up 5 748.75 745.00
Up 10 748.75 740.00
Up 15 748.75 735.00
Up 25 748.75 725.00
Up 50 748.75 700.00
Up 89 748.75 712.00
Up 99 748.75 693.00
Up 100 748.75 700.00
Up 200 748.75 600.00
Up 500 748.75 500.00
Up 800 748.75 800.00
Up 900 748.75 900.00
Up 1000 748.75 1000.00
Up 10000 748.75 10000.00
Down – Multiple of Will get the previous (lower) nearest rounded down amount with the most possible ‘multiple of’ amount set in the Rounding Amount setting defined in the Price List, for example the nearest amount from 748.75 that is multiple of 1 is 748, because 748.75 cannot be evenly divided by 1 without any left number and the nearest rounded down amount that is perfectly divisible by 1 is 748.
Other example, while the next nearest amount that is multiple of with 0.99 is 748.99 and if set to ends in 0.75, the nearest higher point is 748.75 itself, and so on.
CRM will find the nearest preceding amount that is multiple of amount defined in the Rounding Amount before..
See the above table and notice the bold ones to get more understanding..
Tips: Select this option to have the price determined as a multiple of the amount set in the Rounding Amount field.
If you don’t want to get trouble with cent (after comma), and want to get the exact amount, just put 1 as the rounding amount because only exact number that is exactly and absolutely divisible by 1.
If you want to sell the similar products with similar price and you want to put branding in your store, for example All is 999, then just put 999 as the Rounding Amount setting. So, whether the current cost after markup is 599, 749, 750, 899, or 999, the rounded up price will be 999.
See this summary table of the Multiple Of Method.

Base Amount Rounding Amount Rounded Amount (Up) Rounded Amount (Down)
748.75 0 N/A N/A
748.75 0.01 748.75 748.75
748.75 0.1 748.80 748.70
748.75 0.5 749.00 748.50
748.75 0.75 749.25 748.50
748.75 0.85 748.85 748.00
748.75 0.99 749.43 748.44
748.75 1 749.00 748.00
748.75 2 750.00 748.00
748.75 3 750.00 747.00
748.75 4 752.00 748.00
748.75 5 750.00 745.00
748.75 10 750.00 740.00
748.75 15 750.00 735.00
748.75 25 750.00 725.00
748.75 50 750.00 700.00
748.75 89 801.00 712.00
748.75 99 792.00 693.00
748.75 100 800.00 700.00
748.75 200 800.00 600.00
748.75 500 1000.00 500.00
748.75 800 800.00 800.00
748.75 900 900.00 900.00
748.75 1000 1000.00 1000.00
748.75 10000 10000.00 10000.00

Note:

*For the common practice of using ends in as the rounding option, if you hate the non-exact amount with decimal point or odd cent, just put 0 to get the next nearest rounded amount without number after comma. Most of the seller also somehow put 99 behind to attract more sales, it is a human nature behavior, you will see 799 or 799.99 is better than 800 right albeit narrowly it was because of the first number illusion effect.

*Usually the multiple of is not too popular as the rounding option, but it can be useful for those stores or companies who want to have branding in pricing, for example all is 888, all price is in multiple of 5 dollar, can be $5, $10, $15, and so on.

So, no matter your current cost is $3, $4.5, or $4.9, all is in 5 dollar for the rounded up price.
Instead of you manipulate the pricing amount using the currency amount, I think this rounding option provided by CRM is more useful makes more efficiency in your pricing setting, either using ends in or multiple of concepts.

Hope this can help us understanding the pricing method in CRM and make us choose the best rounding policy.

Happy Monday all..
Thank you.

Tuesday, 13 January 2015

Pricing Method in Microsoft Dynamics CRM Product Catalog All in 1 Explanation

When we want to sell the Product in CRM, we offer the Product and the Salesperson will input their offers in the Opportunity Product Line or Quote Product Line before becoming Order and Invoice.

Of course every Product has its own Price, now, how to link it back to the Opportunity Product Line.

Let’s say Marketing or Product Team has defined the Prvaluoduct Pricing, is there any impact in the Sales Processing?

We are expecting that the Salesperson will not be confused and should sell the Product within the expected range analyzed before by the expert Product Catalog Team and Marketing.

The Product Catalog setting will affect the Opportunity Product default Selling Price Thus, we need to understand first, what is the expectations of the Price and Product Master in hoping their salesperson can sell within the amount with good and profitable selling Price. Price List will become the Guide for salesperson to explore and approach the customer and offer them with price that are mutualism, means that all sides are happy, the Product Team, Marketing Team, Sales Team, and also the Customers.

So, the Pricing is very important in the Sales Process Automation.

Mapping the Business Process Pricing to the CRM Pricing Method is not easy unless you understand how it works and how it will affect the CRM Sales Process.

Now, in this post will mainly explain about how the Pricing Method will affect the basic/default Selling Price in the Sales Process and how important to understand it. It would help the Organization to determine the price either by specific amount, expected margin, and suitable profit markup.

Let’s begin reading this post…

Basically, there are 6 methods of pricing in CRM:

image
  1. Currency Amount
  2. Percent of List
  3. Percent Markup – Current Cost
  4. Percent Margin – Current Cost
  5. Percent Markup – Standard Cost
  6. Percent Margin – Standard Cost
We will go through one by one, before that let’s we configure the Product Master record here:

Product Master List Price, Current Cost, and Standard Cost

image

The definition of Current Cost and Standard Cost are based on your own Organization Pricing and Costing.

So my pricing and costing:

Type         Value ($)
List Price899
Current Cost599
Standard Cost549

And then we define the Price List Item here, based on each criteria and let’s see how it works and affect the Opportunity Product (and also Quote Product).

There are two type of pricing, Default or User Provided. Here, we will focus on the Default, eventhough you can change the price later if you choose the “User Provided” type, but by default, CRM will give you a default Price per Unit.

Basically the default Price per Unit of each Opportunity Product will follow the rules:

1. Combination of the Price List (defined in the Opportunity header), the Product itself, and the Unit.
This combination will find the correct Price List Item and get the pricing.

2. If the product does not exist in the Price List defined in the Opportunity then CRM will give price per unit based on the Product default Price List. To know more about Default Price List, please check this link out.

http://missdynamicscrm.blogspot.com/2014/07/10-facts-about-default-price-list-in-CRM2011-2013-that-you-might-not-have-noticed.html

3. If the product does not exist in any price list and does not have the Default Price List, CRM will give 0 value and will cause warning and error, this is to let you know how important the Price List in the CRM Sales process if you want to implement the out of the box CRM sales pricing.

Currency Amount

I will give the $888 with Pricing Method = Currency Amount


image

As you can see the Price Per Unit is not other than $888.00.

We’ve learned how the Currency Amount as one of the CRM pricing method works.
Currency Amount will give exactly the same value from the Amount defined in the respective Product Price List Item

Percent of List

I will set the Pricing Method = Percent of List with Percentage = 50 and the Rounding Policy set to None.

image

There will be no amount can be set after you change the Pricing Method to Percent of List, instead, you can only set the Percentage from the base you set as the Product List Price.

As we remember, we have defined the List Price before to $899 Value, it will be the base price.

See the result here:

image

So now it means that the price will be $449.50 was coming from 50% * 899 = 449.50

What if I want to sell higher?

Just put more than 100% like I did here..

image

Percent Markup vs. Percent Margin

What is the difference between Markup and Margin?

Markup and Margin have different calculation, based on this reference, here is the understanding between those two terms:
Margin
The percentage margin is the percentage of the final selling price that is profit.
Markup
A markup is what percentage of the cost price do you add on to get the selling price.
These are different, a selling price with a margin of 25% results in more profit than a selling price with a markup of 25%.

In a merchant situation it is probably better to work with margins. This means you can know what percentage of our total income is profit.

How to Calculate Selling Price based on Markup?
Selling Price = (Cost X Markup /100) + Cost
How to Calculate Selling Price based on Margin?
Selling Price = Cost/((100-Margin)/100)
Thankfully there is a quicker way to work it out.
For a five percent margin, divide the cost price by 0.95.
For a ten percent margin, divide the cost price by 0.9.
For a fifteen percent margin, divide the cost price by 0.85.
For a twenty percent margin, divide the cost price by 0.8.
For a twenty-five percent margin, divide the cost price by 0.75.
For a thirty percent margin, divide the cost price by 0.7.
..and so on…
For a fifty percent margin, divide the cost price by 0.5.

Percent Markup – Current Cost

Now, how about Percent Markup based on Current Cost? Remember the above formula, you will get the Selling Price.

I will set the Pricing Method = Percent Markup – Current Cost with Percentage = 50 and the Rounding Policy set to None.

image

Same as the previous one, Percent List, you can only set based on percentage, the amount will be calculated automatically based on the Current Cost.

As we remember, we have defined the Current Cost before to $599 Value, it will be the base price.

See the result here:

image
Selling Price = (Cost X Markup /100)+ Cost

Percent Margin – Current Cost

Now, we are still using the Current Cost, but we want to sell based on Margin.

I will set the Pricing Method = Percent Margin – Current Cost with Percentage = 50 and the Rounding Policy set to None.

SNAGHTMLd5389f1

Same as the previous one, Percent List, you can only set based on percentage, the amount will be calculated automatically based on the Current Cost.

As we remember, we have defined the Current Cost before to $599 Value, it will be the base price.

See the result here:

image
Selling Price = Cost/((100-Margin)/100)
For a fifty percent margin, divide the cost price by 0.5.

Percent Markup – Standard Cost

Same as the previous example for the Current Cost, but now, the base is the Standard Cost.

I will set the Pricing Method = Percent Markup – Standard Cost with Percentage = 25 and the Rounding Policy set to None.

image

Same as the previous one, Percent List, you can only set based on percentage, the amount will be calculated automatically based on the Standard Cost.

As we remember, we have defined the Standard Cost before to $549 Value, it will be the base price.

See the result here:

image
Selling Price = (Cost X Markup /100)+ Cost

Percent Margin – Standard Cost

Same as the previous example for the Current Cost, but now, the base is the Standard Cost.

Now, we are still using the Standard Cost, but we want to sell based on Margin.

I will set the Pricing Method = Percent Margin – Standard Cost with Percentage = 25 and the Rounding Policy set to None.

image

Same as the previous one, Percent List, you can only set based on percentage, the amount will be calculated automatically based on the Current Cost.

As we remember, we have defined the Current Cost before to $599 Value, it will be the base price.

See the result here:

image
Selling Price = Cost/((100-Margin)/100)
For a twenty-five percent margin, divide the cost price by 0.75. 
I hope you enjoy this post and make it as reference in the future!

Thank you…Enjoy..

Monday, 8 December 2014

Microsoft Dynamics CRM e-book: Personal Dashboard for End Users

Hi,

Recently, I have requirement to conduct training for end users about Personal/User Dashboard, so I tried to create an e-book and I would like to share my thought, knowledge, and training material here.

Just in case in the future we have another training so that I hope this can be useful for you.

Overall, this e-book will help you to:

*As Trainer/Partner:
- Provide e-book for customers
- Use it as Training Material
- Improve knowledge

*As End Users:
- Learn how to create, customize, configure, and manage Personal Dashboard in Microsoft Dynamics CRM
- And not only Dashboard, but also how to Create New Personal View and New Personal Chart
- How to put and mix it together and build this into a meaningful Data Analytic Tool

This e-book is in full color and full visualization edition which I hope can help you to get the core essence.

And here we go..



Download source: Click Me!

Thank you for Microsoft and another blog references.

Thank you all!

Monday, 1 December 2014

How to Update Activity Entity Record When Completed/Canceled Using CRM SDK C#

As we know, in the activity entity, after you completed or close/canceled an activity record, you cannot modify any value of this activity record. Well, it happened to any entity and you might need to re-open it first. But, sometimes, you need to update some fields when you cancel or complete activities, such as you want to give additional description, you want to save field based on the regarding field, or you want to add some calculation inside when you close any activities.

So, here we are, this is the code to update field when you close the activity, you need a plugin.

public void Execute(IServiceProvider serviceProvider)
        {
            #region must to have

            IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));

            IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));

            // Create service with context of current user
            IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);

            //create tracing service
            ITracingService tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));

            #endregion

            string strStatus = string.Empty;

            if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
            {

                //create entity context
                Entity entity = (Entity)context.InputParameters["Target"];

                if (entity.LogicalName != TFP.Xrm.Contoso.Task.EntityLogicalName)

                    return;

                try
                {
                    if (entity.Contains("statecode"))
                    {
                        //Update the description
                        strStatus = GetStateCodeText(service, entity.LogicalName, "statecode", 
                            ((OptionSetValue)entity["statecode"]).Value);
                        
                        //update the description field
                        entity["description"] = String.Format("{0} on {1}", strStatus, DateTime.Now.ToString("dd/MM/yyyy"));
                    }
                }
                catch (Exception ex)
                {
                    throw new InvalidPluginExecutionException(ex.Message);

                }

            }
        }



The most notable is this line:
if (entity.Contains("statecode"))
{


}

You can have your own logic, in my scenario is I want to update the description field in Task entity to capture the status (in text) + the time, I am sure that you guys have your own scenario Smile, for example update another field based on the status and so one.

And the most important thing is you need to register this plugin onPreUpdate

image

Result:

image

See the updated Description field below.

image

Hope this helps!

Thanks.