Remove Last Item From Collection In SharePoint 2013 And Office 365 Using Nintex Workflows

Welcome to an article on how to remove Last Item from Collection in SharePoint 2013 and Office 365 using Nintex Workflows.This article will display the action “Remove Last Item from Collection” so that all my developer friends don’t have to spend much time and effort while using this function in their projects.

This action will help you to remove the last item of the collection and generate a new collection after removing that item.

Let’s see the implementation of this functionality.

  • Create a list, Dev Testing.
  • Click on the List tab on the Top ribbon and click on Nintex Workflows.

    nintex

    • You will see the following screen, to create a new workflow.
    • Click on “Create new workflow”.

    workflow

  • You will come to the design phase of the Nintex workflows.
  • Add the action, “Remove Last Item from Collection” either by right click on the workflow or by dragging and dropping from the left toolbox.

    collection

  • Now let’s configure it.
  • When you double click on the action the following screen opens up.

    screen

Configure:

  • Target Collection: Choose the variable of a collection from where you want to delete the last item.
  • Value of last item: Provide a blank variable where the workflow will store the value which it is going to remove from the collection.
  • Output: Select a collection variable to store the output without that item.
  • Now we have configured our workflow, let’s go and publish it to use it.
  • Click on Publish on the left corner of the ribbon of Nintex Designer.

    save

  • You will see the following screenshot,

    screen

  • Give your workflow a name.
  • Description
  • Choose your task list where it should store the tasks, It will be Workflow Tasks by default.
  • Choose your history list where it should store the history logs, It will be Workflow History by default.
  • Start Options:

    1. You can either start your workflow manually.
    2. Or you can start your workflow automatically when an item is created.
    3. Or you can start your workflow automatically when an item is modified.

  • Click on Publish.
  • Your workflow will get published.

So in this article we saw how to remove Last Item from Collection in SharePoint 2013 and Office 365 using Nintex Workflows. This action is helpful to delete last or unwanted item in a collection and generate a new collection without the last item.

We will see more new articles on the actions of Nintex Workflows in the other parts of the article. Till then, keep learning.