Thanks Mike! I've followed your suggestion and also took some code from Test_record_reader_inline.groovy  (

2017-11-12 21:43 GMT-02:00 Mike Thomsen <>:
Take a look at the MongoDBLookupService. It should give you a template to work from:

On Sun, Nov 12, 2017 at 4:45 PM, Eric Chaves <> wrote:
Hi Folks,

I've being cracking my head before asking but couldn't figure out how to make an ScriptedLookupService (groovy) return either a Record or an Map. So far I was only able to return single values.

Can anyone point me in the right direction?