Hi Team,
I am looking to use a REST type option list with a dependent field that is passed as a parameter to the API call. However, I am running into issues getting the dependent input value passed correctly to the API. I have confirmed the API endpoint works as an option list with hard-coded parameter values to rule out any issues with the API call itself.
Appliance details
- License: Community edition
- Version: 6.1.1
Option List details
-
Type: REST
-
Method: GET
-
Translation script:
for(var x=0;x < data.key.length; x++) { results.push({name: data.key[x].name,value:data.key[x].id}); }
-
Request script (not working):
if (input.Input1 && input.Input2) { results=[{name:"Input1",value: input.Input1}, {name:"Input2",value: input.Input2}] }
-
Request Script (with hard-coded values, working):
results=[{name:"Input1",value: "value1"}, {name:"Input2",value: "value2"}]
Input dependencies
- Input1: no dependent fields
- Input2: depends on Input1
- Input using option list: dependes on Input2
Current behavior
Option list returns empty list every time and does not update based on values entered for Input1, Input2
Question
Is this use case currently supported in Morpheus Data? Is my option list configured correctly?