ForeachExtension

Description (v2.1.0)

INFO Iterate over all extensions having a given profile and status
INFO Assign the extension to the variable given by [extension]
INFO Store iterator handle in variable given by [iterator]
INFO You must redirect back to this action to do the next iteration
INFO Iterator: [iterator]
INFO Extension: [extension]
INFO Profile: [profile]
INFO Status: [status]

Release notes

Version 2.1.0 - Early deployment
  • Feature: Allow to filter by profile name (M21945)
  • Dependency:
    • Database Schema module 2.2.0 or higher

Version 2.0.0 - Early deployment
  • Feature: Align resource with GetExtensions and Foreach actions (M18416)
  • Dependency:
    • Database Schema module 2.2.0 or higher

Action parameters

This action has the same behavior as GetExtensions and ForEach combined together.

This action retrieves one extension at the time based on the following logical expression:

  • If (Key1 Operation1 Value1) [AND/OR] [(Key2 Operation2 Value2)] [AND/OR] [(Key3 Operation3 Value3)].

ALERT! Limitations and known issues:
  • When looking up for extension in the imported contacts, you cannot use the login key.
  • It is not possible to use a ForeachExtension within a ForeachExtension.

Example of use

This action can for example be used to retrieve all extensions of an office and put all devices of the office in a specific queue.

Example:
  • (Office = Dev) AND (Department = Engineering)
  • (First name = John) OR (Last name = Smith)

The action provides 2 possible outcomes. The next outcome is called while results are available, somewhere in this branch you should redirect to the ForeachAction to fetch the next result. When no more results are available the done outcome is called.
Copyright © Escaux SA