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"
Solved! Go to Solution.
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
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 ?
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) :
You can then extract the result by using a query xml action and the following XPath query :
Hope this helps
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?
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.