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-based session to end. |
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
This sample task creates an Exchange session and includes a few Exchange - Create object steps to create a meeting and task. The task ends with an Exchange - End session step.
Copy
<!-- Create Variables -->
<AMVARIABLE NAME="meetingObjectID" VALUE="" />
<AMVARIABLE NAME="taskObjectID" VALUE="" />
<!-- 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="StartTime" VALUE="12/8/2020 3:26:41 PM" /><PROPERTY NAME="EndTime" VALUE="12/8/2020 4:26:43 PM" /><PROPERTY NAME="Body" VALUE="All the new Features" /><PROPERTY NAME="Location" VALUE="Batman's Office" /><PROPERTY NAME="BusyStatus" VALUE="Meeting" /><PROPERTY NAME="RequiredAttendees" VALUE="nl@netauto.com " /></AMEXCHANGE>
<!-- Create Task -->
<AMEXCHANGE SESSION="NetAutoExchange" EXCHANGEOBJECTTYPE="task" RESULTVARIABLE="TaskObjectID"><PROPERTY NAME="Subject" VALUE="BF2 Meeting" /><PROPERTY NAME="StartDate" VALUE="12/8/2020 4:00:00 PM" /><PROPERTY NAME="DueDate" VALUE="12/8/2020 5:00:00 PM" /><PROPERTY NAME="Body" VALUE="Discuss Improvements" /></AMEXCHANGE>
<!-- End Exchange Session -->
<AMEXCHANGE ACTIVITY="end_session" SESSION="NetAutoExchange" />