Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

SharePoint Designer counting the number of list items

$
0
0

Hi All,

I am writing a SharePoint 2010 workflow in which if an item is added to listA (PersonA, department, fiscal year etc fields)  an item is created in listB. Easy enough :)

But here is the actual problem. If another item added to listA with the same name and same fiscal year, i dont create an item in list B, I just increase the Count field on listB. If the item added has a different person or different year I will create an item in listB.

All the above logic is figured out.

MY QUESTION: For the first time when an item is added in listA, i dont have to compare anything, just create that item in listB. For which i have to know this is the first item in listA. Basically

if(no of items on listA = 1)

Create item in listB

How can I count the number of items in listA?

Thanks in advance



Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>