##### Define

# Async Interfaces

Async Interfaces allow users to listen for events and update the contents of a page without refreshing the page.

From the Async Interface List screen, you can edit, copy, and delete existing Async Interfaces, or add new ones.

## Reference Filter

This filter allows the user to display All, Unused, or Used objects in the List.

## Add

Click Add and the Async Interface Properties dialog box displays. It includes the following fields:

### Interface

This is the async interface name.

### Setup

Clicking the setup button will cause an outline of an async interface to be created. You then must assign the appropriate listener and data fields to the interface.

When you select either the listener or data tag, an Add button displays at the bottom of the screen. This allows the user to assign fields to the tags.

Clicking Add allows you to specify listener or data fields.

Adding a listener field to the interface will cause the Async Listener Field dialog box to appear. The drop-down list contains fields of these types: listener, string, multiline text, numeric, date and time. If the Automatically Assign Listener Name check box is selected, the selection that you make in the Field drop-down list appears automatically in the Name field. You can edit this result if you wish. |

### Name

This is the tag name as it appears in the Async Interface.

### Field

This is the name of the listener field to be added.

Adding data fields causes the XML Tag window to appear. For more details about the XML Tag window, see XML Interface section.

Once the listener and data fields have been added to the interface, you have the ability to add new ones, as well as edit or delete ones that have already been added.

### Edit

The edit button allows you to edit listener or data fields that are already a part of the interface.

### Delete

The delete button allows you to remove listener or data fields from the interface.

Note: Be careful when using the same fields on pages and in Async Interfaces. Forms are processed after the async values are received. Because of this, the values updated by the Async Interface will be overwritten by the field’s value in the form.

### Edit

Use the Edit button to modify existing Async Interfaces. To edit an Async Interface, you must select one from the Async Interface List and click Edit. When this option is selected, the Async Interface Properties window will appear. You can then edit any item on this screen.

### Copy

This option allows you to make a copy of an Async interface.

### Delete

Use delete to remove a Genesys Agent Scripting Interface from the list.

To delete an Async Interface, you must select an Async Interface from the Async Interface List and click Delete.

- Click No to cancel the delete.

- Click Yes to continue.

You may select multiple Async Interfaces to be deleted by holding the Shift key while selecting the Async Interfaces.

### Async Code Commands

Asnyc commands are available in the Code for Action screen.