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

Error trying to apply template to group site with apostrophe character #932

Closed
magarma opened this issue Oct 24, 2023 · 1 comment
Closed

Comments

@magarma
Copy link
Contributor

magarma commented Oct 24, 2023

Hi,
I'm having an issue when applying a template to a group site with an alias similar to this one: "What's new in the world"

Reason: System.Exception: {"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":"The expression "SP.Directory.DirectorySession/Group(alias='What's-new-in-the-world')" is not valid."}}

I'm sending a PR to escape that character... the request should be...
"SP.Directory.DirectorySession/Group(alias='What''s-new-in-the-world')

Thanks

@magarma
Copy link
Contributor Author

magarma commented Oct 30, 2023

The PR was merge

@magarma magarma closed this as completed Oct 30, 2023
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

No branches or pull requests

1 participant