pmchecklist | Product Management Checklist | Awesome List library
kandi X-RAY | pmchecklist Summary
kandi X-RAY | pmchecklist Summary
Product Management Checklist
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create checked message
- Bind field .
- Triggered on jquery plugin
- FastClick implementation .
- Number - > String
- flush an attributes
- the function of random entropy
- get relative paths
- polyfill for function evaluation
- Compute a q .
pmchecklist Key Features
pmchecklist Examples and Code Snippets
Community Discussions
Trending Discussions on pmchecklist
QUESTION
I need to convert a string into an object for the command "Add-PnPListItem".
I have an excel list with multiple mail addresses which I want to add to a SharePoint Online PeoplePicker Field. (https://docs.microsoft.com/en-gb/powershell/module/sharepoint-pnp/add-pnplistitem?view=sharepoint-ps)
Regarding the documentation, the format needs to be in quotation marks and comma-separated: Person/Group (id of user/group in Site User Info List or email of the user, separate multiple values with a comma): -Values @{"Person" = "user1@domain.com","21"}
My problem is that if I read the data from my list, it is a string. (In the format as needed.) As Example "mail@test.com","mail2@test.com"
.
The command returns an error "Add-PnPListItem : The specified user could not be found."
Maybe to make it more clear:
...ANSWER
Answered 2020-Sep-23 at 06:04$test = "mail@test.com","mail2@test.com"
creates an array of string items, not one string. If your Excel sheet outputs a string like ""mail@test.com", "mail2@test.com""
, you can create an array of that by splitting at the comma and trimming it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pmchecklist
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page