Quantcast
Channel: Nintex Connect: Unanswered Threads
Viewing all articles
Browse latest Browse all 2462

Get Url and ID of item created by web service

$
0
0

I am creating a item in a list in site collection B on status change in List on Site collection A. The webservice call works fine. But how can I handle the result? I need to get the URL and to store it on the source item in list (site collection A). I'd need ows_ServerUrl

 

<?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:UpdateListItems>
      <m:listName>Projektaufgabenliste</m:listName>
      <m:updates>

<Batch OnError="Continue" ListVersion="1">
<Method ID="1" Cmd="New">
<Field Name="Bereich">{ItemProperty:Bereich}</Field>
<Field Name="Title">{ItemProperty:Kurzbeschreibung}</Field>
<Field Name="Kommentar_x0020_Kunde">{ItemProperty:Kommentar}</Field>
<Field Name="Kommentar_x0020_YAVEON">TicketId: {ItemProperty:Title},  {ItemProperty:Kommentar_x0020_YAVEON},</Field>
<Field Name="Aufgabenstatus">Aufgenommen</Field>
<Field Name="Beschreibung">{ItemProperty:Beschreibung}</Field>
<Field Name="Priorit_x00e4_t">{ItemProperty:Priorit_x00e4_t}</Field>
<Field Name="Kategorie">{ItemProperty:Kategorie}</Field>
</Method>
</Batch>
      </m:updates>
    </m:UpdateListItems>
  </soap:Body>
</soap:Envelope>

 

 

the response is like that 

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <UpdateListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <UpdateListItemsResult>
        <Results>
          <Result ID="1,New">
            <ErrorCode>0x00000000</ErrorCode>
            <ID />
            <z:row ows_Title=".." ows_Aufgaben_x002d_Nr="string;#UL" ows_Kategorie="." ows_Bereich="." ows_Beschreibung="."
            ows_Aufgabenstatus="Aufgenommen" ows_Priorit_x00e4_t="."
            ows_Kommentar_x0020_Kunde="." ows_Kommentar_x0020_YAVEON="." ows_ContentTypeId="0x01003F6FA60EF2A34F44830BF2138DF5395F"
            ows_ID="216" ows_ContentType="Element" ows_Modified="2013-07-16 13:26:59" ows_Created="2013-07-16 13:26:59"
             ows_owshiddenversion="1" ows_WorkflowVersion="1" ows__UIVersion="512" ows__UIVersionString="1.0"
             ows_Attachments="0" ows__ModerationStatus="0"
             ows_LinkTitleNoMenu="." ows_LinkTitle="." ows_LinkTitle2="." ows_SelectTitle="216"
             ows_Order="21600.0000000000" ows_GUID="{F39A644A-1556-46BE-A096-EE82E26E446C}"
             ows_FileRef="216;#list/216_.000"
             ows_FileDirRef="216;#list"
             ows_Last_x0020_Modified="216;#2013-07-16 13:26:59" ows_Created_x0020_Date="216;#2013-07-16 13:26:59"
             ows_FSObjType="216;#0" ows_SortBehavior="216;#0" ows_PermMask="0x7fffffffffffffff"
             ows_FileLeafRef="216;#216_.000" ows_UniqueId="216;#{E5F24681-D235-4ECC-960A-5867C6E5EB08}"
             ows_ProgId="216;#" ows_ScopeId="216;#{A81F406D-038D-43D9-BDA7-76B96CB1A753}"
             ows__EditMenuTableStart="216_.000" ows__EditMenuTableStart2="216"
             ows__EditMenuTableEnd="216" ows_LinkFilenameNoMenu="216_.000"
             ows_LinkFilename="216_.000" ows_LinkFilename2="216_.000"
             ows_ServerUrl="<url>/216_.000"
             ows_EncodedAbsUrl="<url>/216_.000"
             ows_BaseName="216_" ows_MetaInfo="216;#" ows__Level="1" ows__IsCurrentVersion="1"
             ows_ItemChildCount="216;#0" ows_FolderChildCount="216;#0" xmlns:z="#RowsetSchema" />
          </Result>
        </Results>
      </UpdateListItemsResult>
    </UpdateListItemsResponse>
  </soap:Body>
</soap:Envelope>

 

 Thanks in advance,

Rico

 


Viewing all articles
Browse latest Browse all 2462

Trending Articles