What is function field in a field dictionary.

Rupal Mehta
Kilo Contributor

Recently I am seeing a Function field option while creating a field. Just wanted to ask what does it exactly do.

 

 

1 ACCEPTED SOLUTION

Shubham Tipnis
Kilo Sage
Kilo Sage

Basically function fields are to perform common database transformations and calculations. Regular fields store a value in the database. Instead of storing data, a function field displays the results of a database query. Function fields do not have an associated database column. Instead, function fields generate a value based on simple computations of other fields and constants.

 

I recently had the same question. After some checks I found out below doc which has all the details about function field. Please check it out.

 

Function field

 

Please mark correct/helpful if applicable.

 

Regards,

Shubham

Regards,
Shubham Tipnis
 ServiceNow Enthusiast
️ 3x Rising Star (2022–2024) – ServiceNow Community
 Sharing insights, use cases & real-world learnings from the Now Platform
 Always learning. Always building.

View solution in original post

2 REPLIES 2

Shubham Tipnis
Kilo Sage
Kilo Sage

Basically function fields are to perform common database transformations and calculations. Regular fields store a value in the database. Instead of storing data, a function field displays the results of a database query. Function fields do not have an associated database column. Instead, function fields generate a value based on simple computations of other fields and constants.

 

I recently had the same question. After some checks I found out below doc which has all the details about function field. Please check it out.

 

Function field

 

Please mark correct/helpful if applicable.

 

Regards,

Shubham

Regards,
Shubham Tipnis
 ServiceNow Enthusiast
️ 3x Rising Star (2022–2024) – ServiceNow Community
 Sharing insights, use cases & real-world learnings from the Now Platform
 Always learning. Always building.

SR2
Tera Contributor

Hello Shubham Tipnis,
Thanks for your valuable information. I have a small requirement regarding function field.

There are some operations like concat(), add(), dayofweek().

In the same way can we get a year from a date/time field and store in function field.

ex: the date is 2022-02-23, the value in the function field should be 2022.

Thanks.