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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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:

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

Hope this helps...
lukabrianAuthor Commented:
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.
sorry for the confusion between list item and documents...

just a thought, and assuming you are using MOSS2007, where workflows are not very portable (I believe this has changed in 2010):
Can you just hard-code the list GUID - you can only deploy the workflow to a single list, which will always have the same guid? If this is your situation, it may be the quickest and easiest way, as I don't believe you can get the GUID of the list itself with out of the box sharepoint designer (happy to be proven wrong here...)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.