pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Get-PnPListItem not working with the -UniqueId parameter #2387

Open ekongataspect opened 4 years ago

ekongataspect commented 4 years ago

Reporting an Issue or Missing Feature

Get-PnPListItem using the -UniqueID parameter is not returning an item object from a document library list.

Expected behavior

When I set a variable to Get-PnPListItem -List listname -UniqueId guid, that variable should contain a list item object.

Actual behavior

Unfortunately, the variable is empty. No error message is given.

Steps to reproduce behavior

Connect-PnPOnline (in the normal manner) $item = Get-PnPListItem -List document library name -UniqueId guid without brackets

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.2.1810.0 SharePointPnPPowerShellOnline

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

veronicageek commented 4 years ago

@ekongataspect - Do you still have the issue? I'm using version 3.20.2004.0 (April 2020) and seems OK

UniqueIDItem

ekongataspect commented 4 years ago

Hi Veronique –

I’ve used an MS Flow to accomplish my needs as I couldn’t get it to work with the PnP library (which was the February version).

Thanks! Ellen Kong

From: Veronique Lengelle notifications@github.com Sent: Tuesday, April 14, 2020 8:49 AM To: pnp/PnP-PowerShell PnP-PowerShell@noreply.github.com Cc: Ellen Kong ekong@aspectenergy.com; Mention mention@noreply.github.com Subject: Re: [pnp/PnP-PowerShell] Get-PnPListItem not working with the -UniqueId parameter (#2387)

@ekongataspecthttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fekongataspect&data=02%7C01%7Cekong%40aspectenergy.com%7C946ade066840487b258f08d7e082f189%7C6b73a9d00de74fab8e33eab95ec697d0%7C0%7C0%7C637224725318465113&sdata=%2F5qyHtaULSdSH1%2BA8xhfjLAWiNRIwrGUY0%2F1aZlQNZE%3D&reserved=0 - Do you still have the issue? I'm using version 3.20.2004.0 (April 2020) and seems OK

[UniqueIDItem]https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F25181757%2F79238460-502bcb00-7e67-11ea-941c-96904edefc9b.png&data=02%7C01%7Cekong%40aspectenergy.com%7C946ade066840487b258f08d7e082f189%7C6b73a9d00de74fab8e33eab95ec697d0%7C0%7C0%7C637224725318475104&sdata=B6ixM9cGQvV8ElZdi8AVCmCQYV5WJ1lvkOTnABlIS5Q%3D&reserved=0

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpnp%2FPnP-PowerShell%2Fissues%2F2387%23issuecomment-613487457&data=02%7C01%7Cekong%40aspectenergy.com%7C946ade066840487b258f08d7e082f189%7C6b73a9d00de74fab8e33eab95ec697d0%7C0%7C0%7C637224725318475104&sdata=igfLF6veGXgI5vF1xaXcLk7diR2XZiu2inKb22g%2FYrM%3D&reserved=0, or unsubscribehttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANAGFH2NHIABBHYLE4R7NYDRMRZVDANCNFSM4JVRJJLA&data=02%7C01%7Cekong%40aspectenergy.com%7C946ade066840487b258f08d7e082f189%7C6b73a9d00de74fab8e33eab95ec697d0%7C0%7C0%7C637224725318485094&sdata=0BaOL8tmRPkxmVCb8PkUtuQ3AaftUjUdfKmzvmHZ%2BA0%3D&reserved=0.

Our Denver office located at 1601 Wewatta Street, Suite 600, Denver, CO 80202 is currently closed due to COVID-19 precautions. Employees are working from home. Our phone numbers and email addresses remain the same.