Try to use SPWorkflowActivationProperties.WebUrl
How to get the full url from a sharepoint workflow using c #
-
29-07-2022 - |
Question
I have a custom workflow associated with a list sharepoint 2010 using c#. This workflow is executed when you create a new item in the list and depending on the value of the url is the code that I run. My question. How I can get the full url from a sharepoint workflow?
I use:
var url = System.Web.HttpContext.Current.Request.Url.PathAndQuery;
Result: Error, the object is null or is not an instance
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow