I’m trying to set up an action to create new objects in my ‘Translation’ data source so that for each available language (defined by the built-in enum ‘Language’) I get a new object for ‘Survey’ and ‘Category’.
I’m trying to do this dynamically so that for each new language added in the future, I don’t need to add a new loop and set the defined language for the different data sources. My current setup can be seen below.
However, I’m getting an error when trying to persist the new objects.
Any suggestion for how to set the language property of new objects dynamically?