GetFieldStringValueAsList

Description

Returns a list of string values for the specified field.

This method is equivalent to first calling the GetFieldValue method to obtain a FieldInfo object and then calling GetValueAsList method of the FieldInfo object. This is a more direct and more efficient way to get the value of a field.

Syntax

Perl


$entity->GetFieldStringValueAsList(field_name); 
Identifier
Description
entity
An Entity object representing a user data record.
field_name
A String that identifies a valid field name of an Entity.
Return value
A reference to an array of strings containing the values in the list is returned.

Example

Perl

my $fieldvaluelist = $entity->GetFieldStringValueAsList($fieldname);
# Instead of:
# my $fieldvaluelist = $entity->GetFieldValue($fieldname)->GetValueAsList();