...
- Use
api.getElement("CustomerGroup").customerFieldValue
, depending on what is in the CustomerGroup element. First define the CustomerGroup element, set the set Display Mode to 'Never':
Code Block title CustomerGroup api.customerGroupEntry()
Then in any other element doing the calculations, use a syntax checkthe input generation mode.
Also, set the Display Mode of this element to 'Quoting' at at least.Code Block title SomeOtherElement if (api.isSyntaxCheckisInputGenerationExecution()) 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 }
About
...
It is used in two use cases:
...
Input Generation Mode
Usually, every logic is run twice. In the first run, it just needs to see all calls to the methods which define input params (and so
...
isInputGenerationExecution
is set to true). Otherwise it is a normal logic run and this variable is set to false. The first run is really needed for the system to know what inputs the logic will generate.
Info |
---|
For more details on |
...