How to create a comma separated file containing users

  1. Home
  2. Knowledge Base
  3. How-to Guides
  4. Reporting
  5. How to create a comma separated file containing users

How to create a comma separated file containing users

A Users Export flat file can be used for importing into other systems. The fields required can be added, removed or re-ordered as needed. Also, the delimiter can be customised if required.

Create a Flat File Export

  1. Open PDReports.
  2. Navigate to Flat File Exports > Users Export.
  3. On the Options tab, choose the delimiter. In this example, we will be using Comma. The delimiter is the character that is used to separate each line of data into columns.
  4. In the Layout frame, tick the Export column headers as first row checkbox and choose the Text qualifier (leave as double inverted commas).
  5. In the Fields to be exported, tick all the fields you would like in your report. You can move the headings up or down by selecting the heading and clicking on the Move Up or Move Down buttons.

  1. If you would like only a subset of users exported, click on the Filter Departments tab.

    • Tick the Filter departments checkbox.
    • Tick the departments containing the users you would like exported.
  2. Click Run Export.
  3. Save your file.

View the output in Excel

If the file was saved as a Comma Separated File (.csv) then normally Excel is the default application associated with the file extension (.csv). This means that when the file is opened, Excel will likely auto-format the data into columns and change the columns formats. The problem with this is that if a column contains only numeric data (e.g. the Controller User ID or PIN number), it will change the column data type to Number. This means that if a user’s PIN is 00123, it will only show 123 in the cell which is incorrect.

To avoid Excel auto-formatting columns into Number data type, follow these steps:

  1. Open Excel (without double clicking the file).
  2. Choose a Blank workbook in the templates window.
  3. Click on the DATA ribbon, then From Text/CSV.
  4. In the Import Data dialog, browse to where the file is saved. Select it and click Import.
  5. In the Import dialog, leave the Delimiter option that was chosen when exporting (in our example, it is Comma).
  6. Click on the Data Type Detection dropdown and select Do not detect data types.
  7. Click Load.

 

Document revision date: 2024/07/12
Software version: 2.4.12.3

Article Attachments

Related Articles