Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. $AllSPListItems = Get-PnPListItem $SharePointListName
  2.  
  3. $ItemsSelection = @{ L = "ID"; E = { $_["ID"] } },@{ L = "SP_SiteURL"; E = { $_["SP_SiteURL"] } }
  4.  
  5. $AllSPListItems | Select $ItemsSelection | Export-Csv -Path "C:TempXYZ.csv"
  6.  
  7. $ItemsSelection = @{ L = "$FieldDisplayName[0]"; E = { $_[$FieldURLName[0]] } },@{ L = "$FieldDisplayName[1]"; E = { $_[$FieldURLName[1]] } } }
  8.  
  9. @{ L = "ID"; E = { $_[$FieldURLName[0]] } },@{ L = "SP_SiteURL"; E = { $_[$FieldURLName[1]] } } }
  10.  
  11. Name Value
  12. ---- -----
  13. E $FieldURLName[0]
  14. L ID
  15. E $FieldURLName[1]
  16. L SP_SiteURL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement