Skip to main content
Nintex Community Menu Bar

Create item in list using variable for list URL?

  • Nov 22, 2017 4:30 PM UTC
  • 2 replies
  • 30 views
  • Translate All

Forum|alt.badge.img+1

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?

2 replies

Forum|alt.badge.img+11
  • Nintex Partner
  • Nov 22, 2017 6:04 PM UTC

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

Translate

Forum|alt.badge.img+12
  • Nintex Partner
  • Nov 22, 2017 10:02 PM UTC

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.

Translate