Exchange - End Session

Declaration

<AMEXCHANGE ACTIVITY="end_session" SESSION="text" />

Description:

Ends a session initially started by the Exchange - Create session activity.

Practical Usage

Used to end an existing Exchange session.

Parameters

Server

Property

Type

Required

Default

Markup

Description

Session

Text

Yes

(Empty)

SESSION="theSession"

The name of the Exchange session to end.

Description

Error Causes

On Error

Example

NOTE: The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

This sample task creates an Exchange session. Within the session, a few Create object steps are used to create a meeting and task. The task ends with an End session step.

<!-- Create Variables -->

<AMVARIABLE NAME="meetingObjectID" />

<AMVARIABLE NAME="taskObjectID" />

<!-- Create Exchange Session -->

<AMEXCHANGE ACTIVITY="create_session" SESSION="NetAutoExchange" PROTOCOLTYPE="webdav" EMAILADDRESS="exchange@netauto.com" SERVER="indra.netauto.com" USERNAME="netauto.exchange" PASSWORD="AM4IaUpiBW8p0jdVSjFibrJx0ilJ97MCLAjaME" DOMAINNAME="netauto" CURRENTFOLDER="Calendar" />

<!-- Create Meeting Request -->

<AMEXCHANGE SESSION="NetAutoExchange" RESULTVARIABLE="meetingObjectID"><PROPERTY NAME="Subject" VALUE="Phone System Demo" /><PROPERTY NAME="StartDate" VALUE="12/8/2008 3:26:41 PM" /><PROPERTY NAME="EndDate" VALUE="12/8/2008 4:26:43 PM" /><PROPERTY NAME="Body" VALUE="All the new Features" /><PROPERTY NAME="Location" VALUE="Batman's Office" /><PROPERTY NAME="MeetingStatus" VALUE="Meeting" /><PROPERTY NAME="To" VALUE="nl@netauto.com" /></AMEXCHANGE>

<!-- Create Task -->

<AMEXCHANGE SESSION="NetAutoExchange" EXCHANGEOBJECTTYPE="task" RESULTVARIABLE="taskObjectID"><PROPERTY NAME="Subject" VALUE="Kill all in BF2" /><PROPERTY NAME="CommonStart" VALUE="12/8/2008 4:00:00 PM" /><PROPERTY NAME="CommonEnd" VALUE="12/8/2008 5:00:00 PM" /><PROPERTY NAME="Body" VALUE="With Knife" /></AMEXCHANGE>

<!-- End Exchange Session -->

<AMEXCHANGE ACTIVITY="end_session" SESSION="NetAutoExchange" />