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

Provide an option to remove default SharePoint site templates #138

Open
swallace74 opened this issue Feb 12, 2025 · 2 comments
Open

Provide an option to remove default SharePoint site templates #138

swallace74 opened this issue Feb 12, 2025 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@swallace74
Copy link

Suggestion

We have a requirement to only show a custom site template in the app when requesting SharePoint sites, however the solution also pulls in the default\builtin SharePoint templates. It's straightforward to specify the custom template as the first option but the others are still available. Disabling the GetSiteTemplates Logic App seems to be the only way to remove these from the solution however doing this also removed the custom template from the app. It was still showing in the SharePoint list but the app showed no templates available. Re-enabling the logic app made the custom and default templates reappear in SharePoint and the app.
Can you look at a mechanism for removing the default SharePoint templates that doesn't also remove any custom templates from the app?

@swallace74 swallace74 added the enhancement New feature or request label Feb 12, 2025
@alexc-MSFT
Copy link
Collaborator

@swallace74 Thanks for the suggestion, I just want to clarify a few things first if that's ok. Disabling the GetSiteTemplates logic app will indeed stop site templates include the OOTB ones from being added to the list**. It should not remove your custom template though**, what you can do is simply keep the list item for your custom template, delete the rest and turn off the logic app.

Please check and let me know.

@alexc-MSFT alexc-MSFT added the bug Something isn't working label Feb 13, 2025
@swallace74
Copy link
Author

Hi Alex,

We already had a custom site template in the list before I disabled the GetSiteTemplate logic app. Once I had done that, the custom template was still in the SharePoint list but it no longer appeared in the app - on the site template choice screen it just stated that there were no templates available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants