How to Get List Url of current list


Userlevel 6
Badge +16

This is a simple regular expression so as to get List URL of the current item

I used:

  •      A variable named myStringListURL

85167_pastedImage_4.png

  • The action named "Regular Expression"

85168_pastedImage_7.png

The magic is on the pattern of the regular expression that deletes all characters after "/DispForm.aspx"

The {Common:ItemUrl} , used on the Input text parameter, gets a string like the following:

     http://server/Site/Lists/yourList/DispForm.aspx?ID=xxx

So with the pattern "/DispForm.aspx.*$" and the Operation "Replace text" in blank, we will get the result "http://server/Site/Lists/yourList stored on the variable "myStringURL".

This document was generated from the following discussion: Get List Url of current list/library


2 replies

Badge +2

THANK YOU!! I don't know why this isn't a common reference already. I have been trying to figure this out for so long, but you saved me a lot more time! Nintex Support​ List URL needs to be added as a common reference!!!

Badge

Hey

Another way to get the list url:

{Common:WebUrl}/_layouts/listform.aspx?PageType=0&ListId={Common:ListID}

For your reference:

https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.pagetype.aspx 

Hope it helps too happy.png

Reply