Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Error - Power automate recognizing a number as a integer.

(0) ShareShare
ReportReport
Posted on by
Hi Guys,

I am pulling my hair out! So I have the requirements below.

Approval Process when someone submits a reply on a form, a user puts a "Cost" in and depending on the amount it goes to certain users for approval.
 
- Below £500 Approval goes to user A
- Between £500 - £5000 goes to user B
- Above £5000 goes to user C
 
See attached the form that I am filling out, you can see that I am setting it to 499 which is less than 500.
 
When I run a test I get the attached error. I have tried troubleshooting this to get it to recognise it as an integer but it just seems to not want to play ball.

I'm sure this is something simple that I am missing, has anyone got any ideas?
  • creativeopinion Profile Picture
    creativeopinion 10,056 on at
    Error - Power automate recognizing a number as a integer.
    It's hard to offer any recommendations without seeing the outputs of your flow run. 
     
    It's hard to tell what you have in your Compose action. A number field in MS Forms will output a string even though you've selected it as a number field. You'll need to use the int() function to convert the string to a number.
     
     

     
    In the meantime, you may find these YT Tutorials helpful:


    In this Microsoft Power Automate tutorial, I’ll show you how to get your Microsoft Form responses into SharePoint. I’ll cover how to build a Microsoft form with conditional fields by using branching. You’ll learn how to format your multiple choice responses for a SharePoint multi-choice column as well as converting it to text. I’ll also show you how to take a text response and convert it to a number with a switch action and with an expression.

    After adding the response to SharePoint, we’ll send the user an email confirmation with all the details of their form submission.
    At the end of the video I’ll show you a few tips and tricks on working with a SharePoint list.

    IN THIS VIDEO:
    ✓ How to get a Microsoft Form Response into SharePoint
    ✓ How to get a Microsoft Form ID
    ✓ How to get a Microsoft Form response
    ✓ How to Build a Microsoft Form with Conditional Fields
    ✓ How to used Branching in Microsoft Forms
    ✓ How to format Microsoft Form multiple choice responses for a SharePoint multi-choice column
    ✓ How to parse a Microsoft Form multiple choice response as string of text
    ✓ How to convert a text response to a number
    ✓ How to use the Switch action
    ✓ How to create a custom email confirmation for a Microsoft Form submission
    ✓ How to Create a Custom View in a SharePoint list
    ✓ How to use the Compose Action
    ✓ How to write Power Automate Expressions
    ---


    In this Microsoft Power Automate Tutorial I’m going to cover how to add file uploads to a SharePoint list item. First, I’ll show you how to get the file name and content from the File Uploads from your Microsoft Form, then I’ll show you how to add those files to a SharePoint item.

    IN THIS VIDEO:
    ✓ Two types of MS Forms
    ✓ Where Microsoft Personal (OneDrive) Form File Uploads are Saved
    ✓ Where Microsoft Group Form File Uploads are Saved
    ✓ How to Add a File Upload Question to an MS Form
    ✓ How to get a Microsoft Form ID
    ✓ How to get a Microsoft Form Response
    ✓ How to Get the Dynamic Content Microsoft Form File Upload Content
    ✓ How to handle Single and Multiple Microsoft Form File Uploads
    ✓ How to use a Scope action to Organize and Group Your Flow Actions
    ✓ How to Get the File Content from an MS Form File Upload
    ✓ How to Collect All Files from Multiple File Upload Questions
    ✓ How to Handle MS Form Response When a File Isn’t Uploaded
    ✓ How to Attach an MS Form Single File Upload to a SharePoint List Item
    ✓ How to Attach Multiple MS Form File Uploads to a SharePoint List Item
    ✓ How to Attach MS Form File Uploads to an Email

    Hope this helps!
     
     
  • Suggested answer
    abm abm Profile Picture
    abm abm 32,265 on at
    Error - Power automate recognizing a number as a integer.
    Hi
     
    Could you post your int() expression screenshot. Want to see that mapping.
     
    Did you deleted and added the form field Cost? If it is then you need to map the Form Cost field again?
     
     
    Thanks

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard