cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Copy CreatedBy, Created fields orginal value from lista to listb

Hello,

I have two list listA and listB

i wanted to add new item to listB with ListA's orginal created, createdBy fields value using 'Call web service' action.

Can someone help?

Labels: (1)
0 Kudos
Reply
3 Replies
Workflow Hero

Re: Copy CreatedBy, Created fields orginal value from lista to listb

if you want to change created/By fields on target list you will need to remove their ReadOnly flag first

SharePoint: Modifying Created By field in SharePoint using web services and SPServices | SharePoint ... 

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Copy CreatedBy, Created fields orginal value from lista to listb

I am calling web service to update the Created By field to 'Read only; Any thing wrong with this code, i am getting 'The remote server returned an error: (500) Internal Server Error.' error . Please help

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:UpdateList>
<m:listName>InputReferrals2017</m:listName>
<m:listProperties></m:listProperties>
<m:newFields></m:newFields>
<m:updateFields>
<Batch OnError="Continue">
<Method ID="1" Cmd="Update">
<Field ReadOnly="FALSE" Name="Author" />
</Method>
</Batch>
</m:updateFields>
<m:deleteFields></m:deleteFields>
<m:listVersion></m:listVersion>
</m:UpdateList>
</soap:Body>
</soap:Envelope>

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Copy CreatedBy, Created fields orginal value from lista to listb

I guess you have 2 issues in your request

1. as far as I can see in web service reference, the action to perform should be defined by a <Fields> node instead of <Batch>

2. I'm not sure, the field to update specified this shortened way is sufficient. all the examples I've seen used full field's definition.

Accept as Solution Reply