Field types
The following table summarizes every field type for it's corresponding data to be passed in any REST API.
Field Type | Additional Notes |
Data to be passed in Rest API |
---|---|---|
Auto-number Field |
At the field level, Display Format, Starting Number can be defined. The value for this field is not allowed during post call, however, we can change the existing value using Put call |
{
|
Base Currency field | Is a read-only field. Cannot pass data to this field from API | |
Checkbox Field |
Default value of the checkbox can be defined at the time of field creation Valid values for checkbox are true or false. When true is passed, the checkbox field is checked else unchecked. |
|
Currency field | Currency symbol is appended at the runtime based on the country defined for the field. | {
|
Date Field | Valid format is - YYYY-MM-DD
|
{
|
Date/Time field | Valid Format is -- YYYY-MM-DDThh:mm:ssZ
|
{
|
Decimal field | Default Size, Decimal Places, Default Value, Minimum and Maximum values can be defined at the time of field creation | {
|
Dependent Picklist Field | Values and its codes for the Group of Checkboxes field are defined at the field level. |
In below example, values for Group of Checkboxes are "Baseball|BB", "Football|FB", "Cricket|cric", "Tennis|TN" This is the request to set the values Cricket and Football DPickListField {
|
Document Template Field | Similar to file upload field | |
Email Field | {
|
|
Email Template Field | Similar to file upload field | |
Expression Field | We cannot set the value from the API. It is a read-only field | |
File Upload field | Maximum File size can be defined at the field level. Default is 2MB |
There are two ways to upload a file. Directly giving the fileName in body in form-data mode curl --location --request POST
Passing the base64 encoded binary value of the file via form-date mode. In this way of passing contentType and fileName are mandatory. curl --location --request POST 'http://localhost:8830/prod1
|
Formula Field | We cannot set the value from the API. It is a read-only field | |
Group Checkbox Field | Values and its codes for the Group of Checkboxes field are defined at the field level. |
For below example Values for Group of Checkboxes are "Baseball|BB", "Football|FB", "Cricket|cric", "Tennis|TN" This is the request to set the values Cricket and Football {
This is the request to set the codes for Cricket and Football via codes {
|
Image Upload field | Similar to file upload field | |
Integer field |
Default, min and maximum values can be defined at the field level. If the default value is defined at the field level, and if the user do not pass the value from the rest call, the default value will be populated automatically. Else, the user provided value will be set |
{
|
Integration Link Field | We cannot set the integration link value from the API. It is a read-only field | |
Password Field | {
|
|
Percent Field |
Decimal Places, Default value, Minimum value and Maximum value can be defined at the field level. If the default value is defined at the field level, and if user donot pass the value from the rest call, the default value will be populated automatically. Else, the user provided value will be set. Default value for the Decimal Places is 2. Users can increase this value at the time of field creation. Based on this value the decimals will get stored. |
{
|
Phone Number field | Format should be based on the format defined at the phone field |
When the country code option is not enabled
When the Country Codes option is enabled at the Phone Field
|
Picklist Field | Values and its codes for the picklist field are defined at the field level. |
For below example, values for picklistField are "America|usa", "India|ind", "Australia|aus" This is the request data to set the PicklistField value to the USA
This is the request data to set the PicklistField data via the code
|
Picklist Multiselect | Values and its codes for the Picklist (Multi-Select) field are defined at the field level. |
For below example, values for picklistField are "Baseball|BB", "Football|FB", "Cricket|cric", "Tennis|TN" This is the request data to select the values Baseball and Football {
This is the request data to set the PicklistField data via the code {
|
Radio Button Field | Values and its codes for the Radio Button are defined at the field level. |
For below example, values for Radio button field are "Computer Science Engineering|CS", "Electronics and Communications Engeneering|ECE", "Information Technology|IT" This is the request to select the Information Technology value
This is the request to select the Information Technology value via code
|
Reference Field | {
|
|
Related Field | {
|
|
Roll-Up Summary Field | We cannot set the Roll-Up Summary field value from the API. It is a read-only field | |
Shared Image field | Similar to file upload field | |
Status Field | {
|
|
Tag Field | {
|
|
Template Field | Similar to file upload field | |
Text field | {
|
|
Text Area Field | {
|
|
Time field | Valid Format is -- hh:mm:ss
|
{
|
URL Field | Format required - http/<https://<URL> Value>
|
{
|
Version Number Field | Default Value and option for incrementing the version number when the record clone or updated can be set while defining the field values. | {
|