title: Sharepoint online list Create Folder and insert item in it
body: <p>I am trying to create folder into share point list and add items into newly created folder.</p>
  
  <p>Currently i am open newform.aspx page with folder path which was not already exists as below:-
  <a href="https://sharepointonline.com/sites/SiteName/Lists/ListName/NewForm.aspx?IsDlg=1&amp;RootFolder=/sites/SiteName/Lists/ListName/Folder1/Folder2" rel="nofollow noreferrer">https://sharepointonline.com/sites/SiteName/Lists/ListName/NewForm.aspx?IsDlg=1&amp;RootFolder=/sites/SiteName/Lists/ListName/Folder1/Folder2</a></p>
  
  <p>When user click on save button with items details i am creating Folder1 and Folder2 using code into presave. Folders are created successfully but item is not inserted into it, it throws error that folder path not exists.</p>
  
  <p>If i refresh page and try to add item, it will easily inserted into folder.</p>
  
  <p>Please help me in this.</p>