SharePoint Workflow Variables —

Goldmine!  This nice person posted all variables from a Workflow…

Thanks!

REPOST:
http://community.corasworks.net/blogs.aspx?CWFrameSource=http://community.corasworks.net/blogs/AdamMacaulay/archive/2012/01/14/workflow-context-and-current-item-fields.aspx

Workflow Context and Current Item Fields

Tags:

In working with developing some workflows I needed to understand what are all the possible default elements I can access. Since the workflow itself is a reusable workflow I cannot associate it with a specific list and as such can only access certain pieces of information. Using a Item Event won’t work for me so workflow is the only choice. So given that I have the information and I couldn’t find it on the web, I am sharing it with you as well so you don’t have to get it manually yourself.

Task List

Workflow Context Association Name: Test
Workflow Context Manual Start: True
Workflow Context Workflow Context Manual Start Requires Permissions: True

Workflow Context Start on Item Change: True
Workflow Context Start on Item Creation: True
Workflow Context Start to Approve Major Versions: False
Workflow Context Associator: domain\user

Workflow Context Current Item URL: http://[web app]/sites/site/Lists/Tasks/DispForm.aspx?ID=1
Workflow Context Current Site URL: http://[web app]/sites/[site]
Workflow Context Current User: domain\user

Workflow Context Date and Time Last Run: 1/14/2012 11:47:55 AM
Workflow Context Date and Time Started: 1/14/2012 11:47:55 AM
Workflow Context Initiator: domain\user

Workflow Context Instance ID: 8cc41170-2253-4466-aecc-d9f4a046616f
Workflow Context Item Name: Item Added
Workflow Context Workflow Status URL: http://[web app]/sites/[site]/_layouts/WrkStat.aspx?List=ed681468%2D4791%2D49cd%2Db2fa%2D462b70ea8fee&WorkflowInstanceID=8cc41170%2D2253%2D4466%2Daecc%2Dd9f4a046616f

Current Item Content Type: Task
Current Item Created: 1/14/2012 11:47:55 AM
Current Item Created By: domain\user
Current Item ID: 1
Current Item Modified: 1/14/2012 11:47:55 AM
Current Item Modified By: domain\user

Current Item Title: Item Added

Document List

Workflow Context Association Name: Test
Workflow Context Manual Start: True
Workflow Context Workflow Context Manual Start Requires Permissions: True

Workflow Context Start on Item Change: True
Workflow Context Start on Item Creation: True
Workflow Context Start to Approve Major Versions: False
Workflow Context Associator: domain\user
Workflow Context Current Item URL: http://[web app]/sites/[site]/Shared Documents/ImplementUser (1)_C.xml
Workflow Context Current Site URL: http://[web app]//sites/[site]
Workflow Context Current User: domain\user
Workflow Context Date and Time Last Run: 1/14/2012 11:49:12 AM
Workflow Context Date and Time Started: 1/14/2012 11:49:12 AM
Workflow Context Initiator: domain\user
Workflow Context Instance ID: 925b5612-af61-4538-ba0b-db684665a4d1
Workflow Context Item Name: ImplementUser (1)_C
Workflow Context Workflow Status URL: http://[web app]//sites/[site]/_layouts/WrkStat.aspx?List=9cc7dc27%2D1e4a%2D475c%2D9959%2D0fe34f859667&WorkflowInstanceID=925b5612%2Daf61%2D4538%2Dba0b%2Ddb684665a4d1

Current Item Content Type: Document
Current Item Created: 1/14/2012 11:48:55 AM
Current Item Created By: domain\user
Current Item ID: 1
Current Item Modified: 1/14/2012 11:49:12 AM
Current Item Modified By: domain\user
Current Item Title: ImplementUser (1).xml

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>