Solved

List name

  • 20 March 2017
  • 5 replies
  • 45 views

Badge +6

Hi Friends,

We have a bunch of workflow actions including assigning permissions which requires List name configuration. We have used workflow context > List name. However If some one changes list name for whatever reason the workflows get suspended. 

Does any one know how to hard code the list name in workflow action?

List Guid or name?

Please advise.

Thanks for any pointers to resolve this.

With Best regards,

Nehal

icon

Best answer by nehals 20 March 2017, 15:02

View original

5 replies

Userlevel 5
Badge +13

How often do your users change list names, and why? I've not had this specific issue, but we've had something similar if you change a column property (we changed a people picker from multiple to single) and the places it was referenced in the workflow "broke." If this is something frequent for you and you don't have a way to have this not happen, a possible workaround would be to create a listNameVar at the start of the workflow, and assign List Name to that, so that if/when they change the List Name you only have to update it at that variable location. Of course, then you would need to reference the variable throughout your workflow, not the true List Name.

Badge +6

Excellent workaround....I will try this.

Userlevel 7
Badge +17

If you are into such "manual operations" then you can as well create a mapping list in SharePoint, having two columns:

  1. List name
  2. List GUID

In your workflow simply query that list, setting a filter on "GUID = {Workflow Context:List ID}" and that way you will get the list name.

Regards,

Tomasz

Badge +6

Thanks so much Tomasz and Courtney !!!

Userlevel 7
Badge +17

Nehal, if you find any from our answers as the solution for your problem, please mark it as "Correct" so that other users will know this problem is solved

Of course you can do it after you test both solutions and you choose the most suitable one

Regards,

Tomasz

Reply