title: How to refresh NetSuite sandbox code (only) from production?
body: <p><strong>Refresh NetSuite sandbox from production (code only)</strong> </p>
  
  <p>I realize that we can refresh out sandbox from production but we don't want to refresh the entire sandbox, instead we want to refresh NetSuite SuiteScript, NetSuite Forms &amp; UI Objects. </p>
  
  <p><strong>NetSuite's proprietary infrastructure/code and challenge it brings</strong></p>
  
  <p>I resisted asking this question for several weeks thinking it was too basic but it doesn't appear that way. After working with NetSuite for a while it has become clear that the line between source code and data has become blurry and it's my opinion this is exactly what makes refreshing code challenging. </p>
  
  <p>I've also learned that storing NetSuite code in version control software is next to impossible (for all code) and this leads me to believe that my desire to refresh code only might be impossible as well. I have to wonder how IT shops that are encumbered by SOX compliance issues are able to satisfy auditors when it comes to controlling and modifying the business logic.</p>
  
  <p><strong>The real question and reason for refreshing the sandbox code</strong></p>
  
  <p>My motivation for refreshing sandbox code is the fact that we are encountering unexpected behavior in our sandbox accounts with certain forms (invoice &amp; estimate) where custom tax fields (Ava-Tax) mysteriously moved from the items tab to a tab that contains transaction body fields! The form appears to not have been updated by anyone in over a year and there were no packages installed in the sandbox that might have broken the form. </p>
  
  <p>If I cannot refresh source code is there a way to determine how a NetSuite form became corrupted knowing that the NetSuite Form is stored in a proprietary way and with no apparent source code available? I understand most of the NetSuite code is JavaScript that runs on both the server and client and there are parts that are unavailable to anyone outside of NetSuite.</p>
  
  <p>Any solutions or suggestions are welcome and appreciated.</p>