Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $AllSPListItems = Get-PnPListItem $SharePointListName
- $ItemsSelection = @{ L = "ID"; E = { $_["ID"] } },@{ L = "SP_SiteURL"; E = { $_["SP_SiteURL"] } }
- $AllSPListItems | Select $ItemsSelection | Export-Csv -Path "C:TempXYZ.csv"
- $ItemsSelection = @{ L = "$FieldDisplayName[0]"; E = { $_[$FieldURLName[0]] } },@{ L = "$FieldDisplayName[1]"; E = { $_[$FieldURLName[1]] } } }
- @{ L = "ID"; E = { $_[$FieldURLName[0]] } },@{ L = "SP_SiteURL"; E = { $_[$FieldURLName[1]] } } }
- Name Value
- ---- -----
- E $FieldURLName[0]
- L ID
- E $FieldURLName[1]
- L SP_SiteURL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement