Choose where you’d like to start

getFieldValue()

Note: This help page is applicable only to Zoho Creator

Overview

The getFieldValue() function returns the value of a specified field.

Return Type

  • STRING

Syntax

<variable> = getFieldValue(<fieldLinkName>);
// this syntax will work in workflows except custom functions

(OR)

<variable> = <collectionVariable>.getFieldValue(<fieldLinkName>);
ParameterDescriptionData type
<variable>Variable which will contain the returned value. STRING
<fieldLinkName>Link name of the field whose value will be returned.STRING
<collectionVariable>A collection variable which holds records fetched using the fetch records task.--

Example

1) The following snippet fetches records based on a given criteria and then extracts the field values of the specified field and adds to a list variable.

 listVar = List();
 collectionVar = Registrations[Email == "john@zylker.com"];
 for each rec in collectionVar
 {
 fieldName = rec.getFieldValue("PhoneNumber");
 listVar.add(fieldName);
 }


2) The following snippet iterates through all the fields fetched using getFieldNames() task, and stores the fields along with their values in the "values" variable.

 values  =  Map();
 for each  field  in  getFieldNames()
 {
 values.put(field,  getFieldValue(field));
 }
 info  values;

Get Started Now

Execute