Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

validateupdatelistitem using rest to update User field

$
0
0

I am trying to update user and group field using validateupdatelistitem. But it is not updating as well as not throwing any error in the response.

{'formValues': [{'__metadata': { 'type': 'SP.ListItemFormUpdateValue' },'FieldName': 'Title','FieldValue': 'TesChange'},

{'__metadata': { 'type': 'SP.ListItemFormUpdateValue' },'FieldName': 'UserName','FieldValue': '16'}]

,'bNewDocumentUpdate':true}

In this example I am sending the user id after ensuring the user with login name.

I would like to know what is the correct format to update userfield in validateupdatelistitem withrest api.

Thanks.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>