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

I have a requirement that i need to catch the List title in a sharepoint 2010 designer workflow from list.

Can any one please exlain how to catch the List title

Regards, Suresh Pydi

share|improve this question

3 Answers 3

you could define a new variable and save the URL Path of the List within the newly created variable. After that just extract a substring at the position of the Listname.

For instance your URL Path to the List is:

'http://shppage/Lists/NameOfList/AllItems.aspx'

just get the substring after Lists/ up to until /AllItems

In this Case, copy Substring from 20 to 30(Into the Variable:ListName).

Regards

Ben

share|improve this answer

You could create your WF as a Reusable WF based on your list content type, then create an association form parameter, so that you can write list name when you associate your WF to the list. Now you have this parameter available in your WF.

share|improve this answer

The list's Title is not guaranteed to be part of the list's Path.

The OOTB string functions in SPD 2010 Workflows are weak, to say the least. And index based substring methods are only useful for non-reusable workflows.

It's ridiculous that something as simple as the list URL, path or title aren't available from the Workflow Context.

I'm sorry to say that the only way to achieve this is with a 3rd party product or custom workflow actions.

share|improve this answer

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.