Code2care : TechZone Apps & Tutorials

How to get SharePoint List Item URL using PowerShell





Script to get the Item URL (this will return a relative URL)

$site = Get-SPWeb "<SITE URL>"
$list = $spSourceWeb.Lists["<LIST NAME>"]
$item = $list.GetItemById("<ITEM ID>")
Write-Host $item.Title - $item.Url



Script to build the complete URL which can be clicked to view the item

$site = Get-SPWeb "<SITE URL>"
$list = $spSourceWeb.Lists["<LIST NAME>"]
$id = "<ITEM ID>"
$link = $site.Url + "/" + $list.Title + "/dispform.aspx?id=" + $id
Write-Host Link to item - $link












Top




Posts related to sharepoint.


1. SharePoint does not allow uploading flash files

2. SharePoint List Attachments missing from customized Display Form (DispForm.aspx)

3. Setup synonyms or alias or thesaurus in SharePoint

4. How to exclude results from SharePoint Search

5. Sign in as different user missing in SharePoint 2013

6. Recover SharePoint if the SQL Server IP changes

7. How to Configure PDF iFilter For SharePoint

8. SharePoint Multiline Textbox Line-Break issue with customized XSLT Display form (DispForm.aspx)

9. Create Performance Point Dashboard in SharePoint

10. How to get SharePoint List Item URL using PowerShell

11. How to hide quick launch in SharePoint

12. SharePoint Text Site Column appended comments missing on customized Display Form (DispForm.aspx)

13. Sharepoint Errors Were Found When Compiling The Workflow. The Workflow Files Were Saved But Cannot Be Run

14. Bypass domain name for IIS site

    more...






Popular tags
android
x 175
eclipse
x 29
notepadplusplus
x 20
macosx
x 14
sharepoint
x 14
html
x 14
mac
x 13
androidstudio
x 11




1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy


Code2care © 2012-17