Hi Everyone,
I have a trigger with a dynamic input dropdown. Based on the selected value of the dropdown the output of the trigger will change. performList perfectly returns sample data based on the selected input value, but I’m having trouble figuring out how to provide static samples. I tried to use a function with a static map, but as far as I can tell sample needs to be an object not a function:
const sample = async (z, bundle) => {
let samples = {
"dropdown_value_1": {...},
"dropdown_value_2": {...}
}
return samples[bundle.inputData.selectedDropdownID];
};
This is the validation error I’m getting when I use a function:
App.triggers.activity_occurred.operation.sample │ is not of a type(s) object
Your integration is structurally invalid. Address concerns and run this command again.
I was wondering how the trigger needs to provide static samples?
Many Thanks
Alex