Skip to main content
added 582 characters in body
Source Link

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically).

I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only field".

Is there any way that I can update the "Created By" field? Only Programmatically

This is my XML code.

Note : I don't have user Id. I only have Display Name. I need field from xml code to be updated in SP.

<?xml version="1.0" encoding="iso-8859-1" ?>

<XMLExport DBName="local_Report DB">

<documentexport DOCID="DJHD7WJWA9APWPWO457C20004FE01A">

<Business>

<![CDATA[ Bank Subsidiary]]>

</Business>

<Company>

<![CDATA[ DMS Softies, India ]]>

</Company>

<Region />

<Author>

<![CDATA[ Dushyant M Sharma]]>

</Author>

</documentexport>

</XMLExport>

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically).

I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only field".

Is there any way that I can update the "Created By" field? Only Programmatically

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically).

I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only field".

Is there any way that I can update the "Created By" field? Only Programmatically

This is my XML code.

Note : I don't have user Id. I only have Display Name. I need field from xml code to be updated in SP.

<?xml version="1.0" encoding="iso-8859-1" ?>

<XMLExport DBName="local_Report DB">

<documentexport DOCID="DJHD7WJWA9APWPWO457C20004FE01A">

<Business>

<![CDATA[ Bank Subsidiary]]>

</Business>

<Company>

<![CDATA[ DMS Softies, India ]]>

</Company>

<Region />

<Author>

<![CDATA[ Dushyant M Sharma]]>

</Author>

</documentexport>

</XMLExport>
Tweeted twitter.com/#!/StackSharePoint/status/407907631366688768
Source Link

Updating 'Created By' field in SP2010 programatically

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically).

I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only field".

Is there any way that I can update the "Created By" field? Only Programmatically