Skip to main content
October 14, 2021
Question

Different number of outputs from a interface

  • October 14, 2021
  • 3 replies
  • 0 views

So, I have an interface that depending on the values it could have 2, 3 or more outputs, but it´s not fixed, could be 50. How can I create just as needed rule input to save info for the process? Example I bought 3 objects, then i have to put the info for all the 3 objects and write them in a datastore

3 replies

marco.amador
October 14, 2021

The outputs are of the same type? If so, why don't you create a rule input that is an array of said type?

October 14, 2021

Yes, that´s what i´m trying now. I´m trying to write each item from my array to a database, i hope it´s not very difficult. Thanks!

marco.amador
October 14, 2021

Should be straightforward - just make sure in the Write to Data Store Entity smart service, the 'multiple' checkbox is checked when you select your array variable, so that all elements of the array are written into the database.