cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChhunH
Level: Powered On

How to increment integer value in Sharepoint List using Flow

Hey guys! I am very new to Flow and is needing help on making a reporting Flow. I currently have two lists, SORs and Counter. List A is basically a form where a user has to put in information. The Counter list keeps track of many entries a user has put it for the month and year. 

 

In the Counter list, the columns are as follows: Title-name of the user, Monthly Count, Yearly Count, Email. 

 

I have a made a Flow but cannot find a way to increment the monthly and yearly count. For the monthly count, I was thinking of updating the item monthly and setting it to zero and using a similar approach with the yearly count. 

 

I have attached the flow and counter list. Please help! And thank you for your time. counter.pngflow 1.pngflow 3.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: How to increment integer value in Sharepoint List using Flow

Hi @ChhunH ,

 

You could refer to the following methods to achieve your needs.

  • Suppose I want to calculate the details of the user who created the item in LE Mail list.
  • Use Filter Query to filter out the items of the same email in the Count list.
  • Use Filter array to calculate the number of items created by the specified user in the current month and the current year.
  • Finally updated to the count list, you still need to use length () function to calculate whether there is an item of the same email in the count list.

Image reference:

12.PNG13.PNG14.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Re: How to increment integer value in Sharepoint List using Flow

Hey All

 

Maybe point out that the formula in the Filter array step contains this:

@and(equals(formatDateTime(item()[Created],'mm'), utcNow(mm)),equals(item()?['Email'], triggerBody()?['Author']?['Email']))

@and(equals(formatDateTime(item()[Created],'yyyy'), utcNow(yyyy)),equals(item()?['Email'], triggerBody()?['Author']?['Email']))

Just to make it more clear on the answer of @v-bacao-msft .

 

Kind regards

 

Tom





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





3 REPLIES 3
Highlighted
Community Support Team
Community Support Team

Re: How to increment integer value in Sharepoint List using Flow

Hi @ChhunH ,

 

You could refer to the following methods to achieve your needs.

  • Suppose I want to calculate the details of the user who created the item in LE Mail list.
  • Use Filter Query to filter out the items of the same email in the Count list.
  • Use Filter array to calculate the number of items created by the specified user in the current month and the current year.
  • Finally updated to the count list, you still need to use length () function to calculate whether there is an item of the same email in the count list.

Image reference:

12.PNG13.PNG14.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Re: How to increment integer value in Sharepoint List using Flow

Hey All

 

Maybe point out that the formula in the Filter array step contains this:

@and(equals(formatDateTime(item()[Created],'mm'), utcNow(mm)),equals(item()?['Email'], triggerBody()?['Author']?['Email']))

@and(equals(formatDateTime(item()[Created],'yyyy'), utcNow(yyyy)),equals(item()?['Email'], triggerBody()?['Author']?['Email']))

Just to make it more clear on the answer of @v-bacao-msft .

 

Kind regards

 

Tom





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





Community Support Team
Community Support Team

Re: How to increment integer value in Sharepoint List using Flow

Hi @Tom_Slosse ,

 

Thanks for your assistance!

I forgot this.Smiley Very Happy

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 77 members 3,913 guests
Please welcome our newest community members: