How do I specify the table to use for the Matrix Lookup input type?

How do I specify the table to use for the Matrix Lookup input type?

Answer

Use createVLookup() function.

api.inputBuilderFactory() .createVLookup("TableName") .setLabel("Label") .getInput()

More details can be found in Groovy API docs.