Unable to save array of data to record.

Certified Senior Developer

Hi Team, 

I have a scenario, where I need to add multiple assignees. To do this, I have created a user picker field and initially saving the inputs to a local variable. I want to save this data to a assignees record. where assignees record is in one to many relationship with meeting data record. This mean, the relationship record is multiple in my case and I was not able to save the list of assignees to the record. Can anyone help me?

Attaching the code for reference. 

  Discussion posts and replies are publicly visible