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. |
Examples
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
A sample session based task that updates an entity's attributes.
Copy
<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" />