Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can I get the current list/library Name in SharePoint Designer workflow? I have searched all the lookup options, but no luck.

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

One method I've used in SP2007 is to have a hidden column in my list to store information. Then on the NewForm, I create a hidden field that is going to store the data I want. Then using the IIS server variable URL, you can manipulate the value using XSLT string-before and string-after functions to extract the list name. This is then stored in the list item itself and can be used in a workflow.

share|improve this answer
add comment

Just to bring this full circle, some third party workflow tools have this built in. We have Nintex Workflow available and as part of the standard pieces of data, it knows the list name and other pieces of information like item url all available as default metadata/variables that can be injected into workflow emails.

Prior to having this functionality, I had to go with the above route.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.