Hello everyone! I am developing a Nomination App using Power Apps with SharePoint as the underlying database. In this app, whenever a person is nominated, their ID and description are saved and stored in SharePoint. If another person nominates the same individual again, it is important to avoid creating a duplicate record for that person. Instead, I would like to enable the addition of a new description to the existing record in SharePoint. How can I accomplish this?
Hi There,
You can do this using
First check duplicate record in SharePoint list.
varExistingRecord = LookUp(SharePointList, ID = txtID.Text)
Then check if it's blank and create new one -
If(IsBlank(varExistingRecord), Collect(SharePointList, {ID: txtID.Text, Description: txtDescription.Text}))
other wise
Patch(SharePointList, varExistingRecord, {Description: varExistingRecord.Description & " " & txtDescription.Text}))
Please give kudos and mark as solution if it helps.
Thanks,
Sandeep Mishra
stampcoin
23
Pstork1
20
Most Valuable Professional
Gprior
19