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

Set-PnPList -EnableModernAudienceTargeting only works on Sites created with LCID 1033 #1062

Open
nils-a opened this issue Sep 20, 2024 · 1 comment

Comments

@nils-a
Copy link
Contributor

nils-a commented Sep 20, 2024

For other sites, the error is "'User Information List' can not be found".

E.g. for 1031 (de-de):

Set-PnPList: Die Liste 'User Information List' ist in der Website mit der URL 'https://....' nicht vorhanden.

The reason here is that the title of the user information list is hard-coded in English:

var userInformationList = web.Lists.GetByTitle("User Information List");

This does not for LCIDs where titles have been translated.

@JuergenRB
Copy link

Perhaps it is possible to access the resources as with "GetPagesLibrary"

var result = Utilities.Utility.GetLocalizedString(context, "$Resources:List_Pages_UrlName", "osrvcore", language);

The value is located in "core.resx" with the key "userinfo_schema_listtitle".

@nils-a It would be great if you could test the PR #1063, if you have the opportunity

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

2 participants