Link to home
Start Free TrialLog in
Avatar of lukabrian
lukabrian

asked on

Get Current List ID via Sharepoint Designer 2007 workflow

I need to build an email with a dynamic link to the version history of the current item. When the workflow runs, it needs to sniff out the guid of the sharepoint list so that it can build the URL for the <a href> part of the email that goes to the user. That email would have a link to the version history of the particular item they were editing.

It appears that other variables are possible but I am unsure how to sniff out the list GUID from Sharepoint Designer.
Avatar of sharepointguru14
sharepointguru14

can't use just use the current item variable?
Check if you actually need the guid of the list - I have tried the following url, and it seems to work ok:
http://WEBAPPURL/test/_layouts/Versions.aspx?FileName=%2Ftest%2Fcurrent%2FtestDoc1%2Edoc

This is for document testdoc1.doc in doc lib "current" in site "Test"

Hope this helps...
Avatar of lukabrian

ASKER

Thanks Arduk. your URL is what I need to use, but the GUID of the list must be known when you view history of a list item. For documents you are correct in that you don't need to know the list GUID.

My situation (viewing the version history of an item from dispform.aspx) would take your URL but add ?LISTId={3434mfof-43432j-4343442343}&itemID=5. It's the part inside the {} characters that is the listID.
ASKER CERTIFIED SOLUTION
Avatar of arduk
arduk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.