Skip to main content
Community site session details

Community site session details

Session Id : u/5L30aMaKpIp/pVhvLc+n
Power Automate - Building Flows
Unanswered

Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

Like (0) ShareShare
ReportReport
Posted on 22 Apr 2024 17:31:53 by 16

I have a SharePoint form that populates a SharePoint list. Is it possible to add a number to another number in a SharePoint list from a Microsoft Form? 

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 24 Apr 2024 at 13:29:56
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    @tvalenti If the SharePoint list contains a zero (and it's a number column) the expression should add the numbers together. However, if your MS Form response is empty—you'll get an error when you try to use the int() function. I'd recommend marking your questions required to avoid this.

     

    You'll need to provide more insights to your workflow as you aren't giving me much to go on.

    • 8 people are submitting the form? Is this a one time thing, does it happen daily? monthly?
    • Not sure why you are hardcoding the SP ID as your flow (from your screenshots) will only ever update the SP Item with the ID of 11. How do you plan to update all the other items?
  • tvalenti Profile Picture
    16 on 24 Apr 2024 at 02:19:38
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    Thank you so much for your help! 

     

    Thank you so much for your help!! I got the form and SP list to add the two values correctly. However, if the SP list contained a zero, I was unable to get those two values to add together. In your opinion, I will have 8 people submitting numbers via the Microsoft Form. How would you set this up? I included my current flow and SP list. If there is an easier option, can I make some tweaks to my existing flow?

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 24 Apr 2024 at 00:39:20
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    @tvalenti If you want to hardcode the SP ID, then you will need to use the Get Item action. The Get Items (plural) action returns an array of items. If you are only wanting to return a single item use the Get Item action. By using the Get Items action, Power Automate has automatically added an Apply to Each loop to loop through each item returned—this isn't what you want.

    creativeopinion_3-1713917150710.png

     

    Delete the Get Items action and use a Get Item action instead. Pull your condition action outside of the Apply to Each action. 

     

     

    If the values in your SP list are stored in a number column, the int() function isn't required however the way that you've used it in the Compose action isn't correct—you need to use it in an expression. I would actually recommend removing the Update Item action for now—until you've confirmed that the output of the expression is as expected.

     

    creativeopinion_1-1713916978604.png

    Numbers from a form question will need to be converted into a number using the int() function. Click on the dynamic content tab to insert the dynamic content form your MS form that contains your number response.

    creativeopinion_2-1713917036773.png

    Run a test. The number should be green indicating it's an integer.

    creativeopinion_4-1713917967955.png

    As mentioned before, if your SP list is storing a number (not a string of text) you can use a sub function to add the two numbers together. Important: Rename your actions to make it easier to identify which output dynamic content belongs to which Compose action. 

     

    Insert and expression and use the a sub() function. The add() function takes two numbers and adds them together.

    add([number],[number])

    creativeopinion_9-1713918521290.png

     

    Insert the dynamic content you'd like to add together, in my case, it's the output from the Compose action above and the number column from the SP list. This is why it's important to rename your actions—so you know which output belongs to which Compose action.

    creativeopinion_10-1713918555132.png

     

    Make sure you add a comma to separate the two numbers. Click on the Dynamic Content tab and insert the appropriate dynamic content from your SP list. In my demo my number column in my list is CustomID. So I've inserted that.

    creativeopinion_11-1713918652402.png

     

    Run a test. Review the output. You'll need to repeat this for each column you'd like to add an MS form value to.

    creativeopinion_12-1713919008090.png

    Once you've done this, then you can add the Update Item action. For the ID field, you can insert the ID dynamic content from the Get Item action. 

    creativeopinion_13-1713919094845.png

     

    Insert the output dynamic content from the appropriate Compose action. Again, you'll need to do this for each of your columns that you are adding values to.

    creativeopinion_14-1713919136099.png

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

     

     

     

     

     

     

  • tvalenti Profile Picture
    16 on 23 Apr 2024 at 18:55:03
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    Hopefully, I am heading in the right direction. What would the formula look like to add the existing SharePoint Value with the new data submitted via the Microsoft Form? I do want to hardcode the SP ID, as that is connect to the email submitted by.
    Flow.jpeg

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 23 Apr 2024 at 16:47:36
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    @tvalenti Are you planning to hardcode the SP ID? Or are you going to make it dynamic? If you are hardcoding the ID (which isn't recommended) then you can use the Get Item action to get the original SP item and return the values from that specific SP item.

     

    However I wouldn't recommend hardcoding the ID. There should be some dynamic logic worked into your flow.

  • tvalenti Profile Picture
    16 on 23 Apr 2024 at 14:45:06
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    When the response is connected to a particular email, it updates the associated ID.ID2.jpg

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 23 Apr 2024 at 14:40:36
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    @tvalenti Sorry for the miscommunication. I was wondering how you are getting the SP ID from the user who is filling out the form? You are using the When a New Response is Submitted trigger for your flow.

     

    Do you have a question in your form where the user (filling out the form) will enter a SP ID??... If not, how will you know which SP ID to use when the form has been filled out?

    creativeopinion_0-1713883190986.png

     

  • tvalenti Profile Picture
    16 on 23 Apr 2024 at 14:26:28
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    The first column of my SP list is the ID.
     ID.jpeg

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 23 Apr 2024 at 03:26:55
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    @tvalenti From the screenshot below it looks like you are manually entering in the ID of the SP item. Do you have a field in your MS Form that will allow the user to enter an ID?.. 

     

    Can you provide some insight?

     

    creativeopinion_0-1713828497227.png

     

  • tvalenti Profile Picture
    16 on 22 Apr 2024 at 21:46:26
    Re: Is it possible to add a number to another number in a SharePoint list from a Microsoft Form?

    That is what I'm sure I am missing. How do I get the numbers from the SharePoint list?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete