Wednesday, April 30, 2014

Lookup value not getting populated...

I am using following xml code (copy.asmx > method CopyIntoItems). Per Microsoft http://ift.tt/1iKTXtR I should be able to update lookup fields value as well because Lookup list is on the same subsite and both source and target libraries are on the same sub-site as well. Any idea? Item gets copies and all the columns get populated except the lookup column. I verified that the ID and value matches for the lookup value.



<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://ift.tt/Atvu06; xmlns:soap="http://ift.tt/1hg4FE6; xmlns:m="http://ift.tt/1aeOdzg;>
<soap:Header>
</soap:Header>
<soap:Body>
<m:CopyIntoItems>
<m:SourceUrl>http://http://ift.tt/R2yGkA</m:SourceUrl>
<m:DestinationUrls>
<m:string>http://http://ift.tt/1hg4FEa</m:string>
</m:DestinationUrls>
<m:Fields>
<m:FieldInformation Type="Text" DisplayName="Sales Code" InternalName="SalesID" Value="99999"></m:FieldInformation>
<m:FieldInformation Type="Text" DisplayName="Sales Person Name" InternalName="FullName" Value="TEST, John S."></m:FieldInformation>
<m:FieldInformation Type="Choice" DisplayName="FileSection" InternalName="PersonnelFileSection" Value="1- New Hire Paperwork, ECA, Termination, LOA"></m:FieldInformation>
<m:FieldInformation Type="Choice" DisplayName="FileCategory" InternalName="PersonnelFileCategory" Value="Termination Paperwork"></m:FieldInformation>
<m:FieldInformation Type="Text" DisplayName="Year" InternalName="Record_x0020_Year" Value="2014"></m:FieldInformation>
<m:FieldInformation Type="DateTime" DisplayName="Effective Date" InternalName="Anniversary" Value="04/22/2014 00:00:00"> </m:FieldInformation>
<m:FieldInformation Type="Choice" DisplayName="Status" InternalName="Current_x0020_Status" Value="Terminated"></m:FieldInformation>
<m:FieldInformation Type="Lookup" DisplayName="AreaCode" InternalName="AreaCode" Id="cdae6ca0-d49c-4971-a580-2adcd7a282f1" Value="4;#1795004"></m:FieldInformation>
<m:FieldInformation Type="Text" DisplayName="Title" InternalName="Title" Value="TEST"></m:FieldInformation>
</m:Fields>
<m:Stream>base64Binary</m:Stream>
</m:CopyIntoItems>
</soap:Body>
</soap:Envelope>



No comments:

Post a Comment