pnp / sp-starter-kit

Modern SharePoint Starter Kit - End-to-end showcase solution to get started with modern experiences.
MIT License
759 stars 535 forks source link

Change Alert Notification to get list by url instead of title #513

Open Ahnz opened 2 years ago

Ahnz commented 2 years ago

Category

Is your feature request related to a problem?

We currently have a project where we want to use a different list name for the Alert list. When changing the starter-kit template to create a list with different naming, the Alert Notification extension stops working, as the extension is getting the list by calling hubSiteUrl + '/_api/web/lists/getByTitle(\'Alerts\')/items?.

Describe the solution you'd like

Why use the title for getting the list? I think there are a lot of situations where you need a different list name. In my opinion it would be much better to use the url instead, as this is much more unlikely to be changed.

Describe alternatives you've considered

Use /_api/web/GetList('/Lists/Alerts') instead of /_api/web/lists/getByTitle(\'Alerts\')

ghost commented 2 years ago

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

bcameron1231 commented 2 years ago

We'll be incorporating this into the next release. Thanks.