Hello,
I'm using 2 CDTs. One to saves Contractor information and the other one to save a list of employees of the contractor.
In my form i am using a grid layout component which lets me add a list of employees that will work overtime in a week. Once i submit the form a list of employees is stored in an array of values that will need to be recorded in my Employees table.
My question is, how can i store the output of my employees array to then write into my data store entity?
Thanks!
Discussion posts and replies are publicly visible
Did you take a look at the documentation for Write to Data Store Entity? Basically you will want to add a node input in your process of type Employees. Then, add a reference to your data store entity (I typically use a constant to point to the appropriate data store entity). Then, it should insert the data correctly in the database. This node allows you to insert an array of employees as long as the node input is defined as an array. It should look something like this:
Thanks! Worked as expected.