Selecting function input values by prompting M3

When setting up a function it is possible to prompt M3 for legal values of i.e. item groups.

To prompt for a value, click on the "..." button next to the input field.

A new window will open displaying the possible values. Select a value and click "Ok"

To set this up, create or edit a function with the configurator. On the input field, click the "Add lookup API" button.

Select an M3 program, transaction and which fields to use. Also mark the default field, which will be sent to the input field. Save.

Finish editing the function and save it. The prompt will be available for use.