Skip to main content

I have a workflow that uses a workflow variable to store the URL of a list. I need to be able to create an item in the list using this variable. The Create item action allows only the selection of a list, not a variable. Is there a way to accomplish what I need to do?

Hi Jonathon,

you can either use a "Call Web Service" action to call the Lists-Webservice provided by SharePoint (Lists.UpdateListItems Method (Lists) )

or you can use a "Web Request" action to do a REST call (Working with lists and list items with REST | Microsoft Docs )

REST is the "cooler" way but the SOAP-Webservice is maybe easier to use.

Cheers

Philipp


Hi Jonathan,

Use "Web Request" action with REST API to create list item, please follow this article from community. It is little complex, but easy to implement.

At high level, it involves 3 steps:

1. Get "Request Digest" using "Web Request" action

2. Get "ListItemEntityTypeFullName" using another "Web Request" action.

3. Create item using "Web Request' action by passsing metadata into "body" of it, body contains the list item information.

Thanks,

Krishna.


Reply