Answers.Body: <p>Why not define the attendees as an array in your JSON? This should allow multiples to be added to your field.</p>
  <pre><code>[
      {
          &quot;Meeting Title&quot; : &quot;Project Kickoff&quot;
          &quot;Meeting Attendees&quot; : [&quot;John Doe&quot;, &quot;Jane Smith&quot;, &quot;Jim Brown&quot;]
      }
  ]
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T15:29:46.287Z
Answers.Text: Unfortunately the API from which I grab this data isn't controlled by me, but I'll try writing something to pre-process the data prior to import.
Answers.UserDisplayName: Ed Hebert
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T15:44:48.917Z
Answers.Text: Ah, I didn't realise that. Get someone to rewrite the API!
Answers.UserDisplayName: Wallace
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-20T16:09:58.990Z
Answers.Text: Andy's method was correct. Once I refactored the JSON feed into the format Andy described, the records came in without issue.
Answers.UserDisplayName: Ed Hebert
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T14:34:59.977Z
Answers.LastActivityDate: 2021-05-19T14:34:59.977Z
Answers.UserDisplayName: Wallace
Body: <p>I'm using <strong>Feed Me</strong> to populate content for a &quot;Meetings&quot; section in my site. One of the fields in this section is &quot;Meeting Attendees&quot;, which is an entries field relating to a Contacts Section.</p>
  <p>I have a JSON file that contains a unique Meeting ID, and this Meeting ID could map to several Contacts. In a simplified form, my JSON file format is essentially this:</p>
  <pre><code>[
      {
          &quot;Meeting Title&quot; : &quot;Project Kickoff&quot;
          &quot;Meeting Attendee&quot; : &quot;John Doe&quot;
      },
      {
          &quot;Meeting Title&quot; : &quot;Project Kickoff&quot;
          &quot;Meeting Attendee&quot; : &quot;Jane Smith&quot;
      },
      {
          &quot;Meeting Title&quot; : &quot;Project Kickoff&quot;
          &quot;Meeting Attendee&quot; : &quot;Jim Brown&quot;
      }
  ]
  </code></pre>
  <p>You'll see in this simplified example that three Contacts need to be related to the &quot;Project Kickoff&quot; Meeting entry. I have my &quot;Meeting Attendees&quot; entries field configured with no limit on number of selectable entries, and can add multiple entries without issue when entering data manually.</p>
  <p>However when I run Feed Me on a data set like the one above, Feed Me seemingly overwrites/replaces the entries rather than adding each as a separate relation. e.g. When Feed Me has completed processing the above dataset, my &quot;Project Kickoff&quot; entry will only have one attendee related (&quot;Jim Brown&quot; in this case - or whatever the last value in the dataset happens to be). For the example data above, I would expect to see all three &quot;Meeting Attendees&quot; names related to the &quot;Project Kickoff&quot; meeting entry.</p>
  <p>Is there a way to configure either Feed Me or my JSON data to produce the intended result?</p>
  
Tags: <plugin-feedme><json>
Title: Feed Me with Related Entries Fields - One to Many Relationship
ThreadText: # Feed Me with Related Entries Fields - One to Many Relationship
  
  (Asked by: username_0 on 2021-05-19)
  
  I'm using **Feed Me** to populate content for a "Meetings" section in my site. One of the fields in this section is "Meeting Attendees", which is an entries field relating to a Contacts Section.
  
  I have a JSON file that contains a unique Meeting ID, and this Meeting ID could map to several Contacts. In a simplified form, my JSON file format is essentially this:
  
  ```
  [
      {
          "Meeting Title" : "Project Kickoff"
          "Meeting Attendee" : "John Doe"
      },
      {
          "Meeting Title" : "Project Kickoff"
          "Meeting Attendee" : "Jane Smith"
      },
      {
          "Meeting Title" : "Project Kickoff"
          "Meeting Attendee" : "Jim Brown"
      }
  ]
  
  ```
  
  You'll see in this simplified example that three Contacts need to be related to the "Project Kickoff" Meeting entry. I have my "Meeting Attendees" entries field configured with no limit on number of selectable entries, and can add multiple entries without issue when entering data manually.
  
  However when I run Feed Me on a data set like the one above, Feed Me seemingly overwrites/replaces the entries rather than adding each as a separate relation. e.g. When Feed Me has completed processing the above dataset, my "Project Kickoff" entry will only have one attendee related ("Jim Brown" in this case - or whatever the last value in the dataset happens to be). For the example data above, I would expect to see all three "Meeting Attendees" names related to the "Project Kickoff" meeting entry.
  
  Is there a way to configure either Feed Me or my JSON data to produce the intended result?
  
  **Tags:** plugin-feedme, json
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-19. Score: 2 | Accepted answer
  
  Why not define the attendees as an array in your JSON? This should allow multiples to be added to your field.
  
  ```
  [
      {
          "Meeting Title" : "Project Kickoff"
          "Meeting Attendees" : ["John Doe", "Jane Smith", "Jim Brown"]
      }
  ]
  
  ```
  
  > **Comments:**
  > **username_0**: Unfortunately the API from which I grab this data isn't controlled by me, but I'll try writing something to pre-process the data prior to import.  
  > **username_1**: Ah, I didn't realise that. Get someone to rewrite the API!  
  > **username_0**: Andy's method was correct. Once I refactored the JSON feed into the format Andy described, the records came in without issue.  
  
  ---
  
  