Slaesforce FAQ

how to reduce the margin size in salesforce

by Bria Kulas Published 2 years ago Updated 2 years ago
image

When clicking on the Sales Price pop-over, instead of editing the Sales Price, the sales user can edit the Margin %. If the sales user changes the Margin % to 60%, then the Sales Price of the Product will be automatically calculated as $250 $100 / (100% – 60%) = $250 Cost is $100 (40% of sales price), margin is $150 (60% of sales price)

To edit the dimensions and orientation of your document, navigate to the Page Settings tab in the Template Editor. There, you will find options to adjust page width, height, and margins.Oct 14, 2021

Full Answer

What is Cost-based Pricing (Margin and Mark-up) for Salesforce Products and Why is it Useful

Cost-based Pricing allows you and your sales team to specify either a Cost Mark-Up percentage or a Sales Price Margin percentage on Opportunity Product or Quote Line Item.

How Cost-based Pricing (Margin and Mark-up) Works

Selecting a value in the Cost-Based Pricing picklist (either Mark-Up or Margin)

Example of Mark-Up Pricing in Salesforce

A Product’s Unit Cost is specified either on the Product record or the PricebookEntry record as $100.

Example of Margin Pricing in Salesforce

A Product’s Unit Cost is specified either on the Product record or the PricebookEntry record as $100.

Important Considerations

As you can see from the examples above, there is considerable difference between the sales prices calculated using the Cost Mark-up method than Sales Price Margin. Ensure that you select the right value in the Cost-Based Pricing picklist.

How to reduce the size of a formula?

The most important thing you can do to reduce your formula compile size is reduce the references to other formula fields. Each time you reference a field, the compile size of that field is added to your current formula. A simple field type like a Date is small, but for other formula fields, the size can add up.

What is a picklist in Salesforce?

This example came from the Salesforce Answers community. A picklist stores the name of an agent responsible for an opportunity. The formula calculates a commission, based on Base Commission value and a multiplier. But because Base_Commission__c is referenced in each condition of the CASE () statement, the formula exceeds the compile size.

Why doesn't breaking a formula into multiple fields help?

Breaking the formula into multiple fields doesn’t help either because the compile size of each field is included in the main formula’s compile size.

What does it mean when a formula is too big to execute?

When your formula exceeds this limit, the error message says, “Compiled formula is too big to execute (13,974 characters). Maximum size is 5,000 characters.” This means that the query generated by your formula syntax is too big for the database to handle all at once.

Can you avoid formula limit?

Fortunately there are ways to work around this limit, and you can avoid it in many cases by making your formulas more efficient.

Can you use workflow rule with field update action?

If you have Enterprise Edition, Unlimited, or Performance Edition, you can use a workflow rule with a field update action to set the value of a regular custom field using a formula. When you reference that custom field in a formula, only the value is returned—not the formula that created it. Here’s how to do it:

How to correct formula limit errors?

To correct formula limit errors, move parts of the formula into one or more secondary formula fields, and reference those in your main formula. The secondary fields don’t need to appear on the page layout.

What is the maximum length of a string?

Maximum length is 3,900 characters.” or “The size of your string is 5,385 bytes but may not exceed 4,000 bytes.”. This means the text that you typed into the formula editor has more characters than the database can store in one formula field.

What does it mean when a formula is too long?

When your formula exceeds one of these limits, the error message either says, “Formula is too long (3,902 characters). Maximum length is 3,900 characters.” or “The size of your string is 5,385 bytes but may not exceed 4,000 bytes.” This means the text that you typed into the formula editor has more characters than the database can store in one formula field. Character count includes spaces, carriage returns, and comments. If your formula includes multi-byte characters, such as in Japanese or other multi-byte languages, the number of bytes is different than the number of characters.

Can you remove blank spaces in formulas?

You can remove blank spaces and carriage returns, but this makes complex formulas harder to read , so consider that a last resort.

What is formula in Salesforce?

In Salesforce, formulas are used in many types of business logic, including formula fields, default values for fields, workflow rules, andvalidation rules. Use formulas to calculate something, combine data from multiple fields, check for a condition, or show informationfrom one record on a related record. Formulas can be simple or complex, ranging from basic strings or numbers to complex structureswith layers of nested logic extracting data from multiple fields.

How many bytes can a Salesforce query be?

This limit isthe same for all Salesforce editions: Maximum formula size (in bytes) when compiled: 5,000 bytes.

What is a picklist in Salesforce?

This example came from the Salesforce Answers community. A picklist stores the name of an agent responsible for an opportunity.The formula calculates a commission, based on Base Commission value and a multiplier. But because Base_Commission__cis referenced in each condition of the CASE() statement, the formula exceeds the compile size.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9