Last active
September 30, 2015 04:57
-
-
Save jlewin/1724859 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Load dataset via custom BAQ | |
| using (var session = new Epicor.Mfg.Core.Session("user", "secret", "AppServerDC://server:port")) | |
| { | |
| // DynamnicQuery for BAQ | |
| var dynamicQuery = new Epicor.Mfg.BO.DynamicQuery(session.ConnectionPool); | |
| // Get named BAQ | |
| var queryDesignDataSet = dynamicQuery.GetByID("01-BAQName"); | |
| // Execute and store | |
| DataSet ds = dynamicQuery.Execute(queryDesignDataSet); | |
| ds.WriteXml(cacheFile); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment