Fetch a data from a specific field in an entity and return it as a list for a drop down field

Hi Everyone,

Please I have been having a little struggle with this . I am trying to fetch a data from a specific field in an entity and return it as a list for a drop down field. I have an entity with a field LocationName

.

my code below but doesnt work.

AppsDataSource.from(Fetch(of OfficesForSandataException)(Nothing, Nothing, Nothing, Nothing, New ExpansionFieldOption(){addExpansionFieldOption("CreatedBy", New String(){"Id","Name"}), addExpansionFieldOption("UpdatedBy", New String(){"Id","Name"})}).data.Select(Function(x)x.LocationName))

my drop down appears blank