(Auto-creation of topic Documentation:GA:user:ImpExp:8.5.2 via TOC Documentation:GA:userTOC8.5.2) |
m (1 revision) |
||
Ligne 1 : | Ligne 1 : | ||
− | = ImpExp= | + | =Bulk Import/Export of Agent Data= |
+ | __TOC__ | ||
+ | |||
+ | To create or modify large numbers of agents, you upload a [[CSVFile|comma-separated value (CSV) file]] containing new and changed agent information. You enter or modify values in the appropriate columns for the agent. When uploaded to GAX, the agents listed in the file are created or modified, based on the action to be taken as indicated in the Action column. | ||
+ | |||
+ | GAX enables you to create spreadsheet templates for this purpose. You can create an [[ImpExp#Creating_an_Empty_Template|empty template]] containing only column headers, or you can [[ImpExp#Exporting_Data|export data]] from existing agent records. The exported spreadsheet can be modified and then imported into GAX again for creation or update of agent records. | ||
+ | |||
+ | {{NoteFormat|You might want to create various templates that fit scenarios specific to your operations.|2}} | ||
+ | |||
+ | ==Creating an Empty Template== | ||
+ | An empty template contains all of the mandatory columns plus column headers that you specify. It does not include any data—that is for you to fill in. | ||
+ | |||
+ | <toggledisplay linkstyle font-size:larger showtext="[+] Show steps" hidetext="[-] Hide steps"> | ||
+ | {{Procedure | ||
+ | |Title=Creating a Blank Template for Bulk Agent Updates | ||
+ | |Purpose=To create a template with column headers only (no values) that you can use to upload new and modified Agent data in bulk. | ||
+ | |Steps=<ol> | ||
+ | <li>To create a template, click '''Create Spreadsheet''' in the Agents window or in the History window. This opens a column picker window in which you select the columns that you want to appear in the template.</li> | ||
+ | <li>In the column picker window, select the fields that you want included in the template. The selected columns appear in the columns list on the left. Drag the column names or use the arrows to put them in any order that you require. Note the following:<br> | ||
+ | <ul> | ||
+ | <li> The mandatory fields are always included.</li> | ||
+ | <li> The Action field is always added as the first column.</li> | ||
+ | <li> For Skills, Agent Groups, Access Groups, and Switches, each object can be selected as a column. The column header appears as <tt>[[CSVFile#File_Format|<type>:<name>]]</tt>.</li> | ||
+ | <li> Virtual Agent Group cannot be imported/exported in bulk, so are not listed in the Agent Groups table.</li> | ||
+ | </ul></li> | ||
+ | <li> After you have selected and ordered the columns, click '''Create Spreadsheet'''. GAX generates and downloads the template file, called '''<''logged-in user''>_generated_spreadsheet_<''date stamp''>.csv'''. </li> | ||
+ | </ol> | ||
+ | }} | ||
+ | </toggledisplay> | ||
+ | |||
+ | ==Exporting Data== | ||
+ | GAX allows you to export data from existing data records. If you are modifying the spreadsheet to use as a template, save it as a CSV after making the appropriate changes, and upload it into GAX. | ||
+ | |||
+ | <toggledisplay linkstyle font-size:larger showtext="[+] Show steps" hidetext="[-] Hide steps"> | ||
+ | {{Procedure | ||
+ | |Title=Exporting Agent Data From GAX into a CSV File | ||
+ | |Purpose=To download data for a selected group of agents from GAX into a CSV file. | ||
+ | |Steps=<ol> | ||
+ | <li> In the Agents list, select those Agents for whom you want to export data.</li> | ||
+ | <li> Click '''Export'''. | ||
+ | <li> The column picker window has the associated fields pre-selected for the selected agent. For example, the associated Agent Groups, Access Groups, Skills, and Switches, will be pre-selected for those Agents that the user has selected before. Select more fields as required, or clear those fields that you do not want exported.</li> | ||
+ | <li> Click '''Export'''. GAX generates and downloads a spreadsheet called '''<logged-in user>_generated_spreadsheet_<datestamp>.csv''' with the data that you selected for export.</li> | ||
+ | </ol> | ||
+ | }} | ||
+ | </toggledisplay> | ||
+ | |||
+ | ==Uploading a File== | ||
+ | Before uploading the bulk updates, you must enter the data into a spreadsheet and save it as a CSV file. Do this in one of two ways: | ||
+ | * [[ImpExp#Creating_an_Empty_Template|Create an empty template]] and fill in the appropriate values—This is probably the best way if the majority of your updates are adding new agents. | ||
+ | * [[ImpExp#Exporting_Data|Export existing data]] and make the necessary additions and changes—This is probably the best way if you are primarily making changes to existing agents. You can export the information for just those agents, saving you from filling in the mandatory information for them. | ||
+ | |||
+ | See the example of a prepared spreadsheet and CSV file [[CSVFile#Examples|here]]. | ||
+ | |||
+ | Now go ahead and upload the data into GAX. | ||
+ | |||
+ | <toggledisplay linkstyle font-size:larger showtext="[+] Show steps" hidetext="[-] Hide steps"> | ||
+ | {{Procedure | ||
+ | |Title=Uploading a CSV File | ||
+ | |Purpose=To upload a CSV file into GAX and update agent information in bulk. | ||
+ | |Steps=<ol> | ||
+ | <li> Click '''Import''' in either the Agents window or in the History window.</li> | ||
+ | <li> <div id="st2up"></div>Click '''Select File''' and, using the file browser, select your CSV file.</li> | ||
+ | <li> Click '''Upload Spreadsheet'''. GAX starts validating the file, and displays its progress. You can either click '''Close''' to close the window, or you can monitor the progress from here. Even if the window is closed, processing will continue and can be monitored in the [[History|History window]]. | ||
+ | <ul> | ||
+ | <li> If the '''Spreadsheet is Valid''', click '''Continue''' to start the upload.</li> | ||
+ | <li> If the dialog box displays one or more errors, open your file in a new window and fix the errors. Then repeat this process starting at [[Agents#st2up|step 2]].</li> | ||
+ | </ul></li> | ||
+ | <li>GAX starts processing the records and displays the progress. If necessary, you can do either of the following at any time: | ||
+ | <ul> | ||
+ | <li> Click '''Close Window'''. Processing will continue, and can be monitored in the [[History|History window]].</li> | ||
+ | <li> Click '''STOP Operation''', then click '''Yes, STOP Operation''' to confirm. When processing stops, you are returned to the Agent List view.</li> | ||
+ | </ul></li> | ||
+ | <li> If you did not stop the upload, GAX displays '''Operation Completed''' when the processing of records is finished. It also displays a summary of results, namely the number of records that were successfully created and/or updated, and the number of records that were not updated or created because of an error. Click '''Close Window''' to go back to the main Agent list.</li> | ||
+ | </ol> | ||
+ | }} | ||
+ | </toggledisplay> | ||
+ | |||
+ | ==Script Actions== | ||
+ | |||
+ | ====For new users:==== | ||
+ | <ol> | ||
+ | <li> Create a new Person with specified properties in the specified Folder.</li> | ||
+ | <li> Associate the new Person with the specified Access Groups.</li> | ||
+ | <li> Associated the new Person with the specified Agent Groups.</li> | ||
+ | <li> For Agents, add the specified Skills.</li> | ||
+ | <li> For Agents, do the following: | ||
+ | <ul> | ||
+ | <li> If the Extension field is not specified, create and associate Agent Logins on all specified Switches with the Login Code equal to the Username of the Agent. Agent Logins are created in the Switch Agent Logins folder of the same folder hierarchy specified for the Person object in the Folder property.</li> | ||
+ | <li> If the Extension field is specified, a new Place is created with the name equal to the Username of the Agent. Extension DNs are created with the number corresponding to the Extension field on all specified Switches. Agent Logins are created and associated with all specified Switches that have a Login Code equal to the value of the Extension field. All objects are created under their corresponding root folders using the same folder hierarchy as specified for the Person object in the Folder property.</li> | ||
+ | </ul></li> | ||
+ | </ol> | ||
+ | |||
+ | ====For existing users:==== | ||
+ | # Username and Is Agent fields must be populated in the input file identify the Person. | ||
+ | # All other fields are optional. | ||
+ | # If an optional field is defined, its value is compared to the existing value and, if different, updated for that Person. | ||
[[Category:V:GA:8.5.2]] | [[Category:V:GA:8.5.2]] |
Version du juillet 1, 2015 à 23:24
Bulk Import/Export of Agent Data
Sommaire
To create or modify large numbers of agents, you upload a comma-separated value (CSV) file containing new and changed agent information. You enter or modify values in the appropriate columns for the agent. When uploaded to GAX, the agents listed in the file are created or modified, based on the action to be taken as indicated in the Action column.
GAX enables you to create spreadsheet templates for this purpose. You can create an empty template containing only column headers, or you can export data from existing agent records. The exported spreadsheet can be modified and then imported into GAX again for creation or update of agent records.
Creating an Empty Template
An empty template contains all of the mandatory columns plus column headers that you specify. It does not include any data—that is for you to fill in.
Exporting Data
GAX allows you to export data from existing data records. If you are modifying the spreadsheet to use as a template, save it as a CSV after making the appropriate changes, and upload it into GAX.
Uploading a File
Before uploading the bulk updates, you must enter the data into a spreadsheet and save it as a CSV file. Do this in one of two ways:
- Create an empty template and fill in the appropriate values—This is probably the best way if the majority of your updates are adding new agents.
- Export existing data and make the necessary additions and changes—This is probably the best way if you are primarily making changes to existing agents. You can export the information for just those agents, saving you from filling in the mandatory information for them.
See the example of a prepared spreadsheet and CSV file here.
Now go ahead and upload the data into GAX.
Script Actions
For new users:
- Create a new Person with specified properties in the specified Folder.
- Associate the new Person with the specified Access Groups.
- Associated the new Person with the specified Agent Groups.
- For Agents, add the specified Skills.
- For Agents, do the following:
- If the Extension field is not specified, create and associate Agent Logins on all specified Switches with the Login Code equal to the Username of the Agent. Agent Logins are created in the Switch Agent Logins folder of the same folder hierarchy specified for the Person object in the Folder property.
- If the Extension field is specified, a new Place is created with the name equal to the Username of the Agent. Extension DNs are created with the number corresponding to the Extension field on all specified Switches. Agent Logins are created and associated with all specified Switches that have a Login Code equal to the value of the Extension field. All objects are created under their corresponding root folders using the same folder hierarchy as specified for the Person object in the Folder property.
For existing users:
- Username and Is Agent fields must be populated in the input file identify the Person.
- All other fields are optional.
- If an optional field is defined, its value is compared to the existing value and, if different, updated for that Person.