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

Parents Reply
  • 0
    Certified Lead Developer
    in reply to sri123

    That's not a valid way to structure it.

    Can you provide more detail about the relationship betwene the "local!attendee" variable and the row(s) of "ri!meetingInfo"?  How many MeetingInfo rows do you start out with?  How are they supposed to be matching up (if at all)?

    Or are you simply allowing the user to add any number of attendees and each one should be getting its own, brand new, row of "meetinginfo"?  (The code provided in your screenshot doesn't really tell us enough info to even guess at this, and it all makes a difference as to the ultimate suggested implementation).

Children