Skip to content

Instantly share code, notes, and snippets.

@jlewin
Last active September 30, 2015 04:57
Show Gist options
  • Select an option

  • Save jlewin/1724859 to your computer and use it in GitHub Desktop.

Select an option

Save jlewin/1724859 to your computer and use it in GitHub Desktop.
// 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