cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DwightSlessman
New Member

Increment a number in a Sharepoint list

I am very new to Power Automate. I am trying to create an approval flow. I know the templates are out there but do not meet the requirements. Everything is working fine but I need to be able to update the number of people who have approved the document each time an approval is received.

The field in the Sharepoint list is defined as follows:

FieldDefinition.png

The start of the flow looks like this:

StartofFlow.png

The remainder of the flow looks like this

RemainderofFlow.png

The expression being used looks like this

add(triggerBody()?['Approver_x0020_Count_x0020_1'],1)
 
The goal is to increment the Approver Count 1 field by 1. This does not seem to be working well. 
 
I am using parallel branches for each of the approvers. The Approver Count 1 field only ever advances to "1" regardless of how many people have approved the document.
 
Any help is greatly appreciated.
1 REPLY 1
Hardesh15
Super User II
Super User II

@DwightSlessman 

 

You can initialize a integer variable after the trigger.

After approval process increment that variable using action "increment Variable". 

You need to create more variables if using more approvals parallelly.

ResultResultLogicLogic

Thanks

Hardesh

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (29,289)