Currently, there are 3 steps of creating an action to return an enum in JS, then specifying the action on the master data acquisition settings screen, and processing the return value with JS in the conversion script, so I want to create a return value in JS without going through an action.
If you return the value you want to return with the JS conversion script without using the action results, you only need 1 screen, but calling an action that you don't use is still confusing..
JS actions currently being created
export default async (
Args,
{currentUser, vars, secrets},
) => {
return [
{value: 'yen', label: 'yen'},
{value: 'doller', label: 'dollar'}
]
};
Even if you could just set the initial value of the conversion script to the following, it would be helpful to reduce 1 process.
return [{
label: item.label,
value: item.value,
})]
·