Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: ltollesonCopy and Paste the code below into BRE. The output of this should be a list of fields separated by a comma. You can remove the Static Data node and connect the output of your filter into the Get Metadata node.
--------------------------------------------------------------------------
node:Static_Data_2
bretype:core::Static Data
editor:sortkey=55db4b871dcd074e
output:@40fe6c55598828e5/=
editor:XY=330,450
end:Static_Data_2
node:Get_Metadata
bretype:lal1::Get Metadata
editor:sortkey=55db4b2e2a0b1654
input:@40fd2c74167f1ca2/=Static_Data_2.40fe6c55598828e5
output:@40fd2c7420761db6/=
editor:XY=450,450
end:Get_Metadata
node:Agg_Ex
bretype:core::Agg Ex
editor:sortkey=55db4b4473fb6ed6
input:@4b4668c040aa5a85/=Get_Metadata.40fd2c7420761db6
output:@4b4668e708143fb4/=
prop:GroupBy=<<EOX
1
EOX
prop:Script=<<EOX
FieldNames = groupString('FieldName', ",")
emit FieldNames
where lastInGroup
EOX
editor:XY=560,450
node:Bypass
bretype:::Bypass
editor:shadow=4b467f7e02db3a85
input:@4b467f7e129d45c1/=
input:@4b467f830ffe047b/=
output:@40fd2c7436717256/=
end:Bypass
node:Sort
bretype:::Sort
editor:shadow=4b467f8972dc33df
input:@40fd2c743ebf4304/=
output:@40fd2c746a2a3b47/=
end:Sort
node:Agg
bretype:::Agg
editor:shadow=4b467f9b3d5028c0
input:@40fd2c7427456e5b/=
output:@40fd2c744c862db0/=
end:Agg
end:Agg_Ex