cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
fhunth
Nintex Newbie

How to Get List Url of current list

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

I used:

  •      A variable named myStringListURL

  • The action named "Regular Expression"

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

Labels: (2)
Reply
2 Replies
brilong
Nintex Newbie

Re: How to Get List Url of current list

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!!!

Reply
majids
Nintex Newbie

Re: How to Get List Url of current list

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

Reply