Answers.Body: <p>Turns out you can set the <code>"parentId"</code> field under the <code>"attributes"</code> list in the import JSON data to set a structure parent (to the entry id of the parent entry). This probably means you need to chunk your import into separate steps, for example:</p>
  
  <ol>
  <li>Import only the top-level entries.</li>
  <li>Run a query on the CMS to retrieve entry id's for those just-imported top-level entries.</li>
  <li>Using the list from step 2, assign the proper entry id to the 2nd-level children and import those.</li>
  <li>Run a query to get the 2nd-level entries you just imported.</li>
  <li>etc. etc. for each level of your hierarchy</li>
  </ol>
  
  <p>Would be awesome if you could just nest the JSON structures and the import plugin magically figured out how to set parent ids, but that sounds like a lot of work to implement for a free plugin :)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-04T20:10:51.187Z
Answers.LastActivityDate: 2017-05-04T20:10:51.187Z
Answers.UserDisplayName: Jordan Lev
Body: <p>When using the <a href="https://sprout.barrelstrengthdesign.com/craft-plugins/import" rel="nofollow noreferrer">Sprout Import plugin</a>, how do you place an imported entry underneath a specific parent entry in a structure section?</p>
  
Tags: <plugin-sproutimport>
Title: Sprout Import: Place entries under a parent in structure section?
ThreadText: # Sprout Import: Place entries under a parent in structure section?
  
  (Asked by: username_0 on 2017-04-07)
  
  When using the [Sprout Import plugin](https://sprout.barrelstrengthdesign.com/craft-plugins/import), how do you place an imported entry underneath a specific parent entry in a structure section?
  
  **Tags:** plugin-sproutimport
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-05-04. Score: 2
  
  Turns out you can set the `"parentId"` field under the `"attributes"` list in the import JSON data to set a structure parent (to the entry id of the parent entry). This probably means you need to chunk your import into separate steps, for example:
  
  1. Import only the top-level entries.
  2. Run a query on the CMS to retrieve entry id's for those just-imported top-level entries.
  3. Using the list from step 2, assign the proper entry id to the 2nd-level children and import those.
  4. Run a query to get the 2nd-level entries you just imported.
  5. etc. etc. for each level of your hierarchy
  
  Would be awesome if you could just nest the JSON structures and the import plugin magically figured out how to set parent ids, but that sounds like a lot of work to implement for a free plugin :)
  
  
  ---
  
  