...
- Use
api.getElement("CustomerGroup").customerFieldValue
, depending on what is in the CustomerGroup element. First define the CustomerGroup element, set Display Mode to Never:
Code Block title CustomerGroup api.customerGroupEntry()
Then in any other element doing the calculations, use the input generation mode.
Also, set Display Mode of this element to Quoting at least.Code Block title SomeOtherElement if (api.isInputGenerationExecution()) return //asAs the first line. isInputGenerationExecution supported from version 10.0, in older versions use isSyntaxCheck if (api.getElement("CustomerGroup").customerFieldName == "customerId") { return api.getElement("CustomerGroup").customerFieldValue }
...