Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - Check the UniqueId column instead of GUID column #68

Merged
merged 4 commits into from
Dec 29, 2020

Conversation

gautamdsheth
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

  1. Mentioned in PR - Fix for Issue "Get-PnpListItem with -UniqueId does not return the item" (#2343) PnP-PowerShell#2344
  2. Mentioned in Issue - Get-PnpListItem with -UniqueId does not return the item PnP-PowerShell#2343

What is in this Pull Request ?

Currently we filtering based on the GUID column instead of the UniqueId column.
This PR fixes that. Used to cause confusion
Please credit the original author if we merge this :)

@erwinvanhunen
Copy link
Member

We have to watch out with this one... it's quite a breaking change as such that is easily missed, especially in the context of scripts to be migrated. I'll give it some thought.

@erwinvanhunen
Copy link
Member

Why not modify the CAML query to use an or? E.g. check for both UniqueID or GUID value. As they're unique anyway, there will be no risk of conflicts that you find the wrong item.

@gautamdsheth
Copy link
Collaborator Author

Haa :) , makes perfect sense.
Will modify the PR !

@erwinvanhunen erwinvanhunen merged commit c4ce8d3 into pnp:dev Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants