Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Trouble to using UpdateListItems to update "Created by" value

  Asked By: Alvin    Date: Aug 01    Category: Sharepoint    Views: 3587

I have trouble to using updatelistItems method to update "created by" value..
I can succesfully to add a new one , later when I try update method, I can
update few fields but not all the fields, such "created by" field.
code example:
string strBatch = "<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>4</Field>" +
"<Field Name='Created By''>Unknow User</Field></Method>" ;

Does anyone know why?



2 Answers Found

Answer #1    Answered By: Tonia Franco     Answered On: Aug 01

In out of the box lists, the Created By field  is actually named Author.

Answer #2    Answered By: Amareswar Karkera     Answered On: Aug 01

I know created  by value is actually "Author", just put banch html and url link
into it. I also try update  Author before, is not working.

I found out if I am using SPListItem and upate whole "Body" will be work, if I
am using UpdateListItems() will not work.
Because updatelistitems  is using xml to update ?
I don't get it, even those 2 methods are different, but deep inside always use
soap (web service) talk to sharepoint. and how come I can't use updatelistitems
to update "created by" field?
there something I am missing?