-
Notifications
You must be signed in to change notification settings - Fork 21
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
GetItemsByTitle doesn't work as (at least I) expected - Items are not fetched #35
Comments
No idea how this got submitted, I was just starting to create it. EDIT: Now it's filled out as more or less intended. |
Hey there, Thank you for your suggestion. I have just opened a PR(#38)that should get this fixed, let us know if this helps you. |
It looks great! Looking forward to it. |
Hello? |
Hey @snarlysodboxer, terribly sorry for the late response! @edif2008 and I spent some time today making sure #38 has no more merge conflicts and, additionally, fully working and extended tests. Thank you for your patience and, once again, we apologize for your long wait. Best, |
Your environment
SDK Version:
v1.2.0
Connect Server Version:
1.3.1
OS: Mac OS
Go Version:
go1.17.2 darwin/amd64
What happened?
If you use
GetItemByTitle
, you get a pointer to anItem
which you can then runitem.GetValue(field)
against. However if you useGetItemsByTitle
(plural) and loop over the results and runitem.GetValue(field)
, you'll get empty results, because you haven't calledclient.GetItem(items[0].ID, items[0].Vault.ID)
. This makes it appear like the values don't exist when they actually do.What did you expect to happen?
I expected to be able to loop over the results of
GetItemsByTitle
and runitem.GetValue(field)
. - Or some documentation to direct me to first runGetItem
on the results ofGetItemsByTitle
.Steps to reproduce
Described in What Happened.
Notes & Logs
Happy to add any clarity I missed.
The text was updated successfully, but these errors were encountered: