.. _macro-webex-teams-functions:

Webex App functions
---------------------

.. 21.1|VOSS-725|EKB-5054:


.. index:: Macro function;fn.get_webex_teams_user_csv_data_specific_user

**fn.get_webex_teams_user_csv_data_specific_user**

Given a user's e-mail address as input, return the full
comma-separated value (CSV) data for a specific Webex App user.

Input:

::

  {{ fn.get_webex_teams_user_csv_data_specific_user user1@email.com }}


Returns:

::

   User ID/Email (Required),Jabber with Webex App,Jabber Calling,UC Manager Profile,Contact Migration Required,Calling Behavior,Care Digital Channel,
   user1@email.com,TRUE,TRUE,Profile 1,TRUE,CALL_WITH_APP_REGISTERED_FOR_CISCOTEL,TRUE


.. index:: Macro function;fn.get_webex_teams_user_csv_data_all_users

**fn.get_webex_teams_user_csv_data_all_users**

Return CSV data for all Webex App users.


Input

::

   {{ fn.get_webex_teams_user_csv_data_all_users }}


::



   User ID/Email (Required),Jabber with Webex App,Jabber Calling,UC Manager Profile,Contact Migration Required,Calling Behavior,Care Digital Channel
   user1@email.com,TRUE,TRUE,Profile 1,TRUE,CALL_WITH_APP_REGISTERED_FOR_CISCOTEL,TRUE
   user2@email.com,TRUE,TRUE,,TRUE,CALL_WITH_APP_REGISTERED_FOR_CISCOTEL,TRUE



.. index:: Macro function;fn.send_webex_teams_message

**fn.send_webex_teams_message**

Given a user's e-mail address, This function sends a Webex App message to a single recipient (person).
The function uses a markdown template (configured in VOSS) for the message body. This is a Jinja template and supports pwf variables.
It optionally attaches a specified file.

::

   {{ fn.send_webex_teams_message username@company.com,
      pwf.wt_message_template,
      pwf.csv_file_path }}

.. index:: Macro function;fn.send_webex_teams_message_email_group

**fn.send_webex_teams_message_email_group**

This function sends a Webex App message to multiple recipients defined in an email group i.e. data/EmailGroup
Uses a markdown template (configured in VOSS) for the message body. This is a Jinja template and supports pwf variables.
Optionally attaches a specified file

::

   {{ fn.send_webex_teams_message_email_group pwf.email_group,
      pwf.wt_message_template,
      pwf.csv_file_path }}

.. index:: Macro function;fn.get_webex_teams_device_activation_code

**fn.get_webex_teams_device_activation_code**

Get an activation code for a Webex App device using the Place name as input.
This is done by invoking the model operation directly.

::

   {{ fn.get_webex_teams_device_activation_code Boardroom }}




..   get_webex_teams_user_csv_data
..   get_webex_teams_user_csv_headers
..   get_webex_teams_user_csv_data_specific_user
..   get_webex_teams_user_csv_data_all_users
..   send_webex_teams_message
..   send_webex_teams_message_email_group
..   get_webex_teams_device_activation_code

