Custom Fields
In this lesson, you will learn how to design, create, and configure custom fields (also known as extension fields) for business entities in SAP Sales Cloud and SAP Service Cloud Version 2. You will also learn about data types, formats, and lengths; field attributes and query properties; and how to perform where-used analysis.
Custom fields are additional data fields that administrators can create in SAP Sales Cloud and SAP Service Cloud Version 2. These fields allow organizations to capture business-specific information that is not part of the standard data model.
For instance, NovaLink Industrial Solutions, a company specializing in smart industrial equipment for manufacturing plants, may need to track warranty classification codes on service tickets to ensure accurate support and compliance with customer agreements. Additionally, NovaLink’s sales team might need to record partner certification levels on sales opportunities to better manage strategic collaborations and market positioning.
In such cases, standard fields in SAP Sales Cloud and SAP Service Cloud Version 2 may not provide the flexibility to address these unique business needs. This is where custom fields become essential, enabling NovaLink to capture and utilize specific data tailored to its business operations. Through In-App Extensibility, NovaLink can create custom fields, optimizing its sales and service processes to deliver superior customer experiences.
In SAP Sales Cloud and SAP Service Cloud Version 2, custom fields are retained in the extensibility layer and become part of the target business entity’s runtime data model. They participate in standard CRUD (Create, Read, Update, and Delete) flows and can be exposed in the UI and APIs. They are exposed in the UI, analytics, Machine Learning, and integration APIs, providing a consistent approach to extensibility.
Creating a Custom Field
The foundation of any custom field is its definition. It determines how data is stored, which values are allowed, and which constraints apply. A poor choice in data type or length can affect data quality, reporting, and performance.
Understanding Data Types: The data type defines how the field can be used in logic, reporting, and integrations. It also determines how the system interprets and validates the stored values. Choosing the right type ensures correct processing and avoids limitations. For example, the Number type allows mathematical comparisons and calculations.
Defining Formats and Constraints: Formats and constraints refine the data type by enforcing valid input, such as Email, UUID (Universally Unique Identifier), and precision for numbers, helping maintain consistency. They check against incorrect or inconsistent data entry.
Specifying Field Length: Field length should align with the business purpose. It affects storage, performance, and usability, and should account for varying text lengths in multilingual scenarios. Fields that are too large increase database load, while fields that are too small can result in truncated or unusable data.
The following table provides a brief overview of the primary data types available for custom fields.
| Data Type | Data Format | Description & Best Practice |
|---|---|---|
| String | STRING, UUID, EMAIL, CODE, TOKEN, URI | Used for all alphanumeric text. Subtypes enforce specific formats for identifiers, email validation, and code list values. Best Practice: Always use the String type for ID fields, even if they are purely numeric. |
| Number | FLOAT, DOUBLE | Represents floating-point decimal values. DOUBLE offers higher precision than FLOAT and is suitable for most business calculations. |
| Integer | INT32, INT64 | Used for whole numbers. INT64 supports a larger range of values, which is necessary for very large or small integers. |
| Date / Time | DATETIME, DATE, TIME, DURATION | Provides specific formats for storing a full timestamp, a date-only timestamp, a time-only timestamp, or a time interval (such as 2 hours, 30 minutes). |
| Boolean | BOOLEAN | A simple binary field representing true/false state, rendered as a toggle switch. |
| Object | OBJECT, AMOUNT, QUANTITY | A structured data type for complex values that require additional context. It is the standard for representing monetary Amounts (value + currency) and Quantities (value + unit of measure). |


