any help would be appreciated Thank you
SharePoint 2019 on-premise
I'm making a REST request using ValidateUpdateListItem to update Author and Editor; however, I'm getting an error message: Multiple entries matched; please click to resolve. In the response, the user with that email only has one record.
Note: Window's Authentication and Claims Web application configure for a single site collection.
Request:
_api/web/GetList(@path)/items(5)/ValidateUpdateListItem()?@path=%27/sites/Some Documents%27
Formatted data
{
"formValues":[
{
"__metadata":{
"type":"SP.ListItemFormUpdateValue"
},
"FieldName":"Created_x0020_By",
"FieldValue":"i:0e.t|original-issuer|[email protected]"
},
{
"__metadata":{
"type":"SP.ListItemFormUpdateValue"
},
"FieldName":"Author",
"FieldValue":"[{'Key':'[email protected]'}]"
},
{
"__metadata":{
"type":"SP.ListItemFormUpdateValue"
},
"FieldName":"Created",
"FieldValue":"09/15/2022 04:27 PM"
},
{
"__metadata":{
"type":"SP.ListItemFormUpdateValue"
},
"FieldName":"Modified_x0020_By",
"FieldValue":"i:0e.t|original-issuer|[email protected]"
},
{
"__metadata":{
"type":"SP.ListItemFormUpdateValue"
},
"FieldName":"Editor",
"FieldValue":"[{'Key':'[email protected]'}]"
},
{
"__metadata":{
"type":"SP.ListItemFormUpdateValue"
},
"FieldName":"Modified",
"FieldValue":"09/15/2022 04:27 PM"
}
],
"bNewDocumentUpdate":true
}
Response:
{
"d":{
"ValidateUpdateListItem":{
"__metadata":{
"type":"Collection(SP.ListItemFormUpdateValue)"
},
"results":[
{
"ErrorMessage":null,
"FieldName":"Created_x0020_By",
"FieldValue":"i:0e.t|original-issuer|[email protected]",
"HasException":false
},
{
"ErrorMessage":"Multiple entries matched, please click to resolve.",
"FieldName":"Author",
"FieldValue":"[{'Key':'[email protected]'}]",
"HasException":true
},
{
"ErrorMessage":null,
"FieldName":"Created",
"FieldValue":"09/15/2022 04:27 PM",
"HasException":false
},
{
"ErrorMessage":null,
"FieldName":"Modified_x0020_By",
"FieldValue":"i:0e.t|original-issuer|[email protected]",
"HasException":false
},
{
"ErrorMessage":"Multiple entries matched, please click to resolve.",
"FieldName":"Editor",
"FieldValue":"[{'Key':'[email protected]'}]",
"HasException":true
},
{
"ErrorMessage":null,
"FieldName":"Modified",
"FieldValue":"09/15/2022 04:27 PM",
"HasException":false
}
]
}
}
}
"FieldValue":"[{'Key':'i:0e.t|original-issuer|[email protected]'}]"
OR"FieldValue":"[{'Key':'i:0#.f|membership|[email protected]'}]"
for Author and Editor fields. Let me know if this works for you.