How to set the array of particular value to second array particular field

Hi All,

i have 2 tables. 1.project(id,requesttype,automationname,etc), 2.Task(id,projectid,workflowtype,etc)

Project:{ { "",test,test}, {"",test,test},{"",test,test}} 

task:{{ "","",task}, {"","",task},{"","",task}} }

for example  After write to data store entity of my project data is{ { 1,test,test}, {2,test,test},{3,test,test}} 

once project data is created i want to create the task respectively before that i want to assign the PROJECT DATA (ID) which is 1,2,3 to Task Data(PROJECTID)

finally after i write the task data into db i want my task data as: {{1,1,task},{2,2,task},{3,3,task}}

can you please help how i can set the id of project to particular cloumn in the task data

  Discussion posts and replies are publicly visible