How do I export or import variables as a CSV file?

In Course settings › Variables, choose Export CSV to save variables.csv, or Import CSV… to add and update variables from rows of name,type,initialValue.

Last updated

A CSV file is the quickest way to review all your variables in a spreadsheet, or to add many at once. The file has one header row, name,type,initialValue, and one row per variable.

Export your variables

  1. #

    Choose Course settings in the header, then Variables.

  2. #

    Choose Export CSV. Xogogy saves variables.csv and also shows the rows in a box, ready to copy.

Import variables

  1. #

    Prepare the rows. The first row is name,type,initialValue. The type is text, number or boolean. For example:

    • name,type,initialValue
    • LearnerRole,text,Manager
    • Attempts,number,0
    • TourDone,boolean,false
  2. #

    In Course settings › Variables, choose Import CSV….

  3. #

    Choose Choose CSV file (.csv) and pick your file, or paste the rows into CSV rows (name,type,initialValue).

  4. #

    Choose Apply CSV import. A row whose name is new adds a variable; a row whose name already exists updates that variable's initial value.

If the import is refused

  1. #

    Xogogy checks every row before it changes anything. If one row has a problem, such as a number that is not a number, nothing is imported and the message names the row.

  2. #

    Fix that row and choose Apply CSV import again.

Tip: A whole import is one step in your history, so Ctrl+Z undoes all of it at once.

Quiz and system values are read-only, so an import cannot change them.

Still stuck?

Write to support@xogogy.com. A person at GForce Learning reads every message. Include the app version from Help › About Xogogy.