In this lesson, you will learn how to implement custom logic in SAP Sales Cloud and SAP Service Cloud Version 2 using validations and determinations.
Custom logic initiates a specific process within the system that does not already occur by default. It enables key users to create their own implementations to customize application functionalities. Custom logic in SAP Sales Cloud and SAP Service Cloud Version 2 provides powerful extensibility capabilities that allow organizations to implement business-specific rules without modifying the core system.
Validations and determinations are based on simple expressions and configured using built-in tools. These custom logic expressions are simple logic and are limited by the capabilities of business expressions and custom logic tools.
Validations
Validations in SAP Sales Cloud and SAP Service Cloud Version 2 are an in-app custom logic to check record data at specific points in the entity lifecycle. It then returns messages to block, warn, or inform the user before saving the record.
They are your essential tool for enforcing data quality and guiding users directly at the point of saving a business entity. As an administrator or key user, you will implement this custom logic to check for specific conditions when a record is saved.
Validations consist of three building blocks:
- Header: Name and description of the validation
- Condition: Evaluating the required conditions using a flow-based condition editor
- Action: Decide if an error message or a warning should be displayed
The following video demonstrates how to set up field validations in SAP Sales Cloud and SAP Service Cloud Version 2. It shows how to define validation criteria and configure custom error messages to ensure your data meets specific business requirements.
Determinations
In SAP Sales Cloud and SAP Service Cloud Version 2, Determinations are an in-app custom logic that administrators and key users can use to automatically calculate and set field values for a business entity.
They can either serve as Pre Hooks to populate a field before the user edits the entity or as Post Hooks to set a value that cannot be changed by the user. This value can be based on user input; for example, set the probability of an opportunity based on progress, activities, or other inputs.
In the following video, you will learn how to automate field value calculations in SAP Sales Cloud and SAP Service Cloud Version 2 using Determinations. You will also learn how to navigate system settings, configure conditions, and set up formulas to calculate opportunity probabilities based on sales phase, thereby streamlining your business processes.


