Dynamics CRM - End session

Declaration

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

Description:

Ends a session previously created and started with the use of a Dynamics CRM - Create session activity.

NOTE: To function properly, this activity requires a Microsoft Dynamics CRM System Administrator or System Customizer security role or equivalent permissions.

Practical Usage

Used to mark the end a Dynamics CRM session.

Parameters

Server

Property

Type

Required

Default

Markup

Description

Session Name

Text

Yes

(Empty)

SESSION="SimpleDBSession2"

The name of the session to end.

Description

Error Causes

On Error

Examples

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

Description: A sample session based task that updates an entity's attributes.

<AMDYNAMICSCRM ACTIVITY="create_session" PROTOCOL="http" SERVER="209.223.157.106" USERNAME="administrator" PASSWORD="AM2gvUWJwwypS+Z9QcnFzL2L9z1QydMMsQpaME" DOMAIN="netautoinc" ORGANIZATION="netautodyn" AUTODISCOVER="no" DISCOVERYURI="http://209.223.157.106/XRMServices/2011/Discovery.svc" ORGANIZATIONURI="http://dynamicscrm2011/netautodyn/XRMServices/2011/Organization.svc" AUTHTYPE="ActiveDirectory" SESSION="DynamicsCrmSession1" />

<AMDYNAMICSCRM ACTIVITY="update_entity" SESSION="DynamicsCrmSession1" ENTITY="account" ID="%test.accountid%" />

<AMDYNAMICSCRM ACTIVITY="end_session" SESSION="DynamicsCrmSession1" />