cancel
Showing results for 
Search instead for 
Did you mean: 
jonathon_sutton
Nintex Newbie

Create item in list using variable for list URL?

Jump to solution

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?

Labels: (1)
Tags (1)
0 Kudos
Reply
2 Replies
Automation Master
Automation Master

Re: Create item in list using variable for list URL?

Jump to solution

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

View solution in original post

0 Kudos
Reply
krishnachaluvad
Nintex Newbie

Re: Create item in list using variable for list URL?

Jump to solution

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.

0 Kudos
Reply