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

How do I get the library URL from the item?

Jump to solution

For additonal actions within the workflow I need to know the URL of the current library. We have a lot of different libraries but the build is not unique. Sometimes the library URL is "website/lists/library_name" in other cases only "website/library_name"

0 Kudos
Reply
21 Replies
Automation Master
Automation Master

Re: How do I get the library URL from the item?

Jump to solution

The url for the documents libraries is "website/library_name"

The url for the lists is "website/lists/list_name"

Hope this helps

0 Kudos
Reply
djlo
Nintex Newbie

Re: How do I get the library URL from the item?

Jump to solution

Hello Caroline,

unfortunally your answer was to easy and wrong. In my case I have the following situation:

Website URL = http://rad.eworkplace.xxx.com/training

Library name = Dokumente

Library URL = http://rad.eworkplace.xxx.com/training/lists/ewdocuments

You see, your solution gives not the right answer

0 Kudos
Reply
Automation Master
Automation Master

Re: How do I get the library URL from the item?

Jump to solution

Which version of SharePoint do you have ?

0 Kudos
Reply
djlo
Nintex Newbie

Re: How do I get the library URL from the item?

Jump to solution

It is SharePoint 2013 and Nintex Workflow 2013 STD

0 Kudos
Reply
Automation Master
Automation Master

Re: How do I get the library URL from the item?

Jump to solution

Just to be sure, can you confirm that this list is a document Library and not a list by sending a screenshot of the site content page where we can see the logo next to the name of the list ?

0 Kudos
Reply
djlo
Nintex Newbie

Re: How do I get the library URL from the item?

Jump to solution

Library settings.JPGScreenshot Library.JPG

0 Kudos
Reply
Automation Master
Automation Master

Re: How do I get the library URL from the item?

Jump to solution

To get the url of the document Library or list, you can execute the following REST API query (by using a web request action in your workflow) :

Site_url/_api/web/lists/getbytitle('Dokumente')/RootFolder

You can then extract the result by using a query xml action and the following XPath query :

//*[local-name()='ServerRelativeUrl']

Hope this helps

Reply
djlo
Nintex Newbie

Re: How do I get the library URL from the item?

Jump to solution

Hi,

my problem is nearly solved. I have still one open issue.

I need the absolute address of the library. In my case the Nintex variable "Web_url" ends with the name of the subwebsite "Training" and the ServerRelativUrl starts again with the Websitename "Training".

How can I get in any easy, but flexible way to receive the absolute URL?

0 Kudos
Reply
Automation Master
Automation Master

Re: How do I get the library URL from the item?

Jump to solution

Maybe the simplest way is to create a workflow constant with the url of the server.

If you have multiple environment, you just have to change the value of this constant and keep the same name.

0 Kudos
Reply