AnsweredAssumed Answered

Using Web Request To Create New List Item

Question asked by nick on Dec 26, 2018
Latest reply on Jan 3, 2019 by nick

Hello,

I am trying to use the Web Request widget to create a line item and fill in multiple columns in a dynamic list (dynamic list because the list where content is added always changes).


Currently I am only able put information in the Title column of a dynamic list. I can't figure out how to format the XML code so that I can put information in multiple columns. My screen isn't large enough to screenshot everything, so the relevant values are below:

URL: Web_URL/_vti_bin/lists.asmx

SOAP 1.1 is being used

SOAP Action: http://schemas.microsoft.com/sharepoint/soap/UpdateListItems

 

XML Code:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>SPECIFIED_LIST</listName>
<updates>
<Batch OnError="Continue">
<Method ID="1" Cmd="New">
<Field Name="Title">TITLE_VALUE</Field>
</Method>
</Batch>
</updates>
</UpdateListItems>
</soap:Body>
</soap:Envelope>

 

Using the configuration above, a new line item is added to a specified list. What I can't figure out is how to add items to more than one column.

 

Other details:

This workflow is tied to a form library.

All the lists getting content added to them are in the same site as this workflow.

The account being used is a Site Owner in SharePoint.

 

Any help is greatly appreciated.

Outcomes