Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

'listGUID' not supported when with ‘baseUrl’ #7

Closed
YakQin opened this issue Dec 31, 2017 · 3 comments
Closed

'listGUID' not supported when with ‘baseUrl’ #7

YakQin opened this issue Dec 31, 2017 · 3 comments
Assignees
Labels

Comments

@YakQin
Copy link

YakQin commented Dec 31, 2017

Hello,
I like this lib very much.
but it seems the following is not support right now. I wanted to always use the GUID because the list title can be changed by others.

sprLib.list({ listGUID:"the GUID", baseUrl:"the url" }).getItems...

@gitbrent gitbrent self-assigned this Dec 31, 2017
@gitbrent
Copy link
Owner

Hi @YakQin,

Thanks for the feedback - I hope you find the library useful.

You'll want to use the name option for the List GUID (it takes both name or GUID - doc link)

sprLib.list({ name:"8fda2798-dbbc-497d-9876-ef87b08e09e1", baseUrl:"the url" }).getItems()
sprLib.list({ name:"Departments", baseUrl:"the url" }).getItems()

Let me know if you have any other issues or questions.

Example:
screen shot 2017-12-31 at 17 56 58

@YakQin
Copy link
Author

YakQin commented Jan 1, 2018

thanks for the quick response. it is clear now. I should read the doc more carefully :)
by intuition I thought if I give "name" I should enter the list name only.

Maybe if you change to "GUID" for GUID then it will be much more clear like below
sprLib.list({ GUID:"8fda2798-dbbc-497d-9876-ef87b08e09e1", baseUrl:"the url" }).getItems()

@gitbrent
Copy link
Owner

gitbrent commented Jan 6, 2018

Thanks for the feedback @YakQin

I've added the ability to pass guid as guid option now:

screen shot 2018-01-05 at 22 44 27

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants