SAP Knowledge Base Article - Public

3381313 - How to restrict field length for any custom fields

Symptom

You want restrict field length for the custom field you are creating through Extensibility.

Environment

  • Service Cloud Version 2
  • Sales Cloud Version 2 

Reproducing the Issue

  1. Navigate to your user profile on the top-right corner of your screen, and from the dropdown list select Settings -> All settings-> General and click Extensibility Administration
  2. Select a service and click the Drill Down icon (+) to open and select an entity you want to check, and select it.
  3. Go to Custom Fields tab and create a custom field
  4. While you are creating a custom field , you need to fill the "Fill length" with the legth you wish to define a field. Field length should be the maximum length of the field you want a field to define with.

Cause

The Field length is a property  to restrict maximum length applicable for a field.

Example you want to restrict length to 15 for a String type field FirstName. In this case if any value is passed more than 15 characters for FirstName from UI / API an error would be populated.


Resolution

You can define the field length property  only for string and number.

Keywords

KBA , CEC-CRM-CZM-EXT , Extensibility for SAP Sales/Service Cloud , Problem

Product

SAP Sales Cloud and SAP Service Cloud Version 2 1.0