How can i get a list name - via sharepoint 2010 designer workflow? I can get the following tokens Server Relative URL and ItemURL which has the listname in it. But anyone have managed to get the list name by itself when using SP designer workflow 2010? Thanks in Advance

  • For what use do you need to get the list name in workflow? Nov 1, 2018 at 6:46

2 Answers 2


Get List Name in SharePoint 2010 designer workflow

You can not directly get the List name in SharePoint 2010 designer workflow. Also, The list's Title is not guaranteed to be part of the list's Path(URL).

I will suggest some work arounds to get the list name in workflow:

To get the Title of List:

  1. Best work around I have used till now is to create one more field in list which will have default value set to Title of list. Make this field hidden from list forms and remove from views also. You can access this field later in workflow under Current Item.

To get the name of List from Path(URL):

  1. You can get the Current Item URL under Workflow Context. set it to local workflow variable. Then substring that URL to get the list name using substring functions in SharePoint 2010 designer workflows.

For Example:

Your URL Path to the Item is: http://siteUrl/Lists/NameOfList/DispForm.aspx?ID=itemID.

Just get the substring after Lists/ up to until /DispForm and save it another local varible as listName.

  1. Or you can use the same approach of creating hidden field and setting its default value to either full list URL or just Path/Display name of List.
  • Have you tried this? Or considered using hidden column? Nov 11, 2018 at 5:54

You can do this by substring the Encoded Absolute URL and put the value in a new variable.

substring url to get listname

Here is some documentation about substrings in workflows.

  • Thanks guys but these solutions aren't working for me 100% as the list name could be anything and number of characters can differ. Any other suggestions. I need to be able to use replace or anything more specific
    – naijacoder
    Nov 2, 2018 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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