Hello ,
i need to save the user info in Person/Groups column of my SP list.
I am selecting the data from a Drop down list.
When i do "DD.selected.value' it gives mee error saying that it needs a record to save.
How can i do this??
Solved! Go to Solution.
At least it's working 🙂
E.g. nullifying Person fields doesn't even work at all:
{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims:"", Department:"", DisplayName:"", Email:"", JobTitle:"", Picture:"" }
Thanks @v-micsh-msft for this great reference! I have gone back to this many times and it has helped a lot.
This helped me achieve a similar goal of creating a new SharePoint list item with an entry in a multi-select person column for each row in a collection which I posted below in case it helps someone else.
Essentially, this allows attendance taking without searching for each person's name in the Office365 directory but rather maintaining a list of "members" to each committee and then offering these as choices to mark "attended" or not. I also included a combobox to search for and and occasional attendees and visitors which are then patched in at the same time.
The collection
"build collection of committee members who are checked as attended"; ClearCollect(colMembersToAdd, ForAll(Filter(Gallery1.AllItems,Checkbox1.Value= true), { DisplayName:DisplayName, Claims: Claims } ) )
The patch operation
"patch one entry into multi-select person field with a person for each person in collection colMembersToAdd"; Patch(Attendance,Defaults(Attendance), { Title:"Meeting Attendees", Attendees: ForAll(colMembersToAdd, { Claims:Claims, Department:"", DisplayName:"", Email:"", JobTitle:"", Picture:"" } ) } )
Thank you - this works perfectly
Hi all,
sorry to reply to such an old topic, but I wasn't able to find something similiar.
Adding a user is working fine with your solutions but how do i add GROUPS to the SharePoint List? I mean.. the column in the list is designed for adding Users or Groups but i cann't get it working..
I have a ComboBox with something like "'Office365-Gruppen'.ListOwnedGroups().value.displayName" for choosing a group, but i can't add that into the SharePoint List with a Patch-Statement. Any Suggestions?
This solution worked for me. Thanks
Hi @fher: I found a fix that appears to be working for O365 groups, as follows:
Instead of this:
Claims: "i:0#.f|membership|" & "someO365group@yourdomain.com"
Try this:
I realise this is an old thread but my issue is very much like what is happening here for some people. With my particular Patch, it was working just fine, until today, when I started getting an error - Specified User could not be found etc.
The below image is taken after I made some minor changes being the removal of the reference to TextInput2_36.Text from the Department, Email, JobTitle and Picture fields, and the same for the second part of the patch for Buddy.
Powerapps FlowChecker is saying:
Patch(source, record, update, update, update, update, ...)
update: The update that needs to be patched to the given record
What I am trying to do, is through a gallery, patch a textinput field (as per above) which includes the person field AssignedTo. This is not working, yet when I update the AssignedTo via a form on the app, this works. But the second part of this, is that a flow is triggered, to identify when a job has been assigned based on the DisplayName of the person in the AssignedTo field, and then fill in the AssignedToEmail field. When I fill out the AssignedTo field via the form, my Flow is not able to populate the AssignedToEmail field - this was working previously.......
Any help would be much appreciated as I was supposed to be putting this app into full use before weeks end. With this broken, it won't be usable.
User | Count |
---|---|
252 | |
106 | |
96 | |
50 | |
39 |