using a workflow to increase a number by one

Posted on 2010-01-05
Last Modified: 2013-12-14

this may seem a bit long winded so i appologise now. i have a team site that has a task list for sales guys to enter their up and coming meetings called AM Activity. there is also another task list called Planned Activity that lists the total of each months entries by sales person, i.e. Jan-10 sp1  sp2 sp3 sp4.

i am looking to create a worklow that will run when one of the sp creates a new entry it will increase the total in the relating planned activity month by a count of 1. i can get the work flow to look at the date range and if the sp name matches it will put a 1 in the task list called Planned activity under that sp name but i dont know how to get it to actually increase that total everytime that sp creates an entry in that month.
Question by:RMADMIN

    Author Comment

    here is a screen shot of the front page to give you an idea of what i mean
    LVL 42

    Accepted Solution

    look at this example:

    in particular, see the part about incrementing the EmailReminderCount field.  it shows how to increment that counter by one.  the same concept will apply to your scenario
    LVL 19

    Expert Comment

    I don't get why, when you are adding an item to a list, you would want to increase a counter somewhere by one.

    Wouldn't it be easier, when looking up your overview, to count the number of items realtime?

    Author Comment

    Hi Ms Shadow
    im new to workflows and wasnt sure how to go about it. i want the view you can currently see in the picture but wasnt sure how to get it so i thought the simplist way may be to have a workflow update an additonal list am i wrong?

    Hi Zephyr_Hex i will check that link out many thanks

    Author Closing Comment

    works like a charm. took a bit of configuring though

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    Introduction Many of the most common information processing tasks require sorting data sets.  For example, you may want to find the largest or smallest value in a collection.  Or you may want to order the data set in numeric or alphabetical order. …
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now