Sandbox Query

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

Depending on the data you need to pull, you may be able to get the data from the API and bypass creating and running export jobs and parsing text files. The <Astra> tag in the spoke is equivalent to the Query API in terms of what you can request. If necessary, a spoke can make direct SQL queries against our DB Report Views and, though we don't recommend it, our tables. That is not possible via the API.

 

For example, this API call would get all SandboxSections for a Sandbox:

 

 ~api/query/sandboxsection?fields=SisKey&filter=X

 

Where "X" is the URL encoded expression "SandboxId==<guid>". More fields can be requested of course.

 

And the following query:

 

 ~api/query/sandboxplannedcourse?fields=Course.SisKey,SandboxStudent.Student.SisKey&filter=Y

 

 Y = Url.encode("SandboxSection.SandboxId=="+guid);

 

Would produce a sequence of Course SisKey by Student SisKey pairs for a given Sandbox. Obviously you'll want more information from the Sandbox Section and/or Sandbox Student as well, but this is essentially the schedule stored in the Sandbox. Getting the Id of the Sandbox could be another query for a well-known named Sandbox.

Page url: ?sandboxquery.htm