web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding a value to shar...
Power Automate
Answered

Adding a value to sharepoint

(1) ShareShare
ReportReport
Posted on by 112

So just to summarize it, 

I need to make a flow where when a user submits a form, if a specific answer is selected (radio buttons) it will add 1 to a sharepoint list column. 

I've been struggling with this for the whole morning.

Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at

    Can you show what you have so far in your workflow. And the column you are adding 1 to, is it for the same item every time? If not, how does your flow know which item it needs to add 1 to?

  • ZackS Profile Picture
    112 on at
    Hi @david MA, Sorry I've actually deleted the flow to recreate it, Basically what I need is the following

    A form is submitted
    it gets the the response details
    based off of the employee's ID it'll update their row based on the occurrence, The occurrence we're working on is just checking if someone is absence, Basically if it already has a sharepoint value which should be nil if they've never been entered in before, it'll just add Plus 1 to the value
  • David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at
    Ignore: getting used to how the new forums work.
  • Suggested answer
    David_MA Profile Picture
    14,090 Super User 2026 Season 1 on at
    To do what you want, I would do the following:
    1.  Update the SharePoint list so that the default value where you want to increment the value is zero. Also, make sure the field is a number field and set it to zero decimal places.

    2.  Set the field that stores the employee's ID to make it required and enforce unique values. This will ensure each employee can only be entered in the list once. I would also suggest that you index this column in your list.

    3.  In your workflow that triggers when a form response is received, add a variable (we'll call it Plus 1) to store the calculation for the "add plus 1 to the value" of integer type.

    4. Add a Get items action and point it to the SharePoint list to update. I assume that in the form response, there is a question that asks for the employee ID. User a filter query to filter it to where the employee ID in the SharePoint list equals (eq) the value from the form response.

    5. Add a condition and use a length expression to check if one row has been returned from the Get items action.

      1. If yes, on the yes side of the condition add an apply to each action. This is required when you use the Get items action since it returns an array, but since you have configured your SharePoint list to require unique employee IDs, it will only update one row.

        1.  Add a set variable action and set the Plus 1 variable with the current value from the SharePoint list.

        2.  Follow it with an increment variable action and increment it by 1.

        3.  Add an update item action configured to your SharePoint list and use the variable to update the corresponding value in your list. You could send an HTTP request to SharePoint to do this, but that is more complicated. But once you know how to update an item with an HTTP request it often makes things easier than an update item action 

      2. If no, on the no side of the condition you can create an item in your SharePoint list to add the new employee ID and set the initial value of the count to 1.
  • Verified answer
    ZackS Profile Picture
    112 on at
    Hey David, I just figured this out using fx

    I did this: 
     
    if(
        equals(item()?['SHAREPOINTCOLUMNNAME'], null),
        1,
        add(item()?['SHAREPOINTCOLUMNNAME'], 1)
    )


    Thanks for your help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard