Url Of Item


  • hi..

    i,m developing a workflow in wss 3.0

    i,m using custom list.

    i have some items in it.if u make a mouse over to Title field u see a url where the form in going to redirect u.

    in my case its http://sharepoint:9999/Lists/mylist/DispForm.aspx?ID=1

    how to get this id Programatically

    plz help
    Wednesday, March 05, 2008 7:07 AM


  • In order to get the ID number for the item in the workflow, you can query ID value from:




    You can get the URL from the Site, and the rest from the List.


    Code Snippet

    string itemURL = "http://sharepoint:9999" + this.workflowProperties.ListURL + "/DispForm.aspx?ID=" + this.workflowProperties.Item.ID;




    This string will be the URL you are looking for and should come out like:






    Wednesday, March 05, 2008 6:36 PM