Skip to main content

Notifications

Convert String to Number using Power Automate

Implementation Steps:

 

1. Navigate to https://flow.microsoft.com

 

2. Click My Flows --> Click New Flow --> Select Instant Cloud Flow (You can select based on your needs)

 

rampprakash_0-1653319410200.png

 

3. Input Flow Name and Select PowerApps as Trigger

 

rampprakash_1-1653319480092.png

 

 

4. Click Create

 

5. Click Add Step --> Search for Variables --> Select Initialize Variable --> Input Name and Select Type as String and Value as "10"

 

rampprakash_2-1653319639649.png

 

6. Then Again Click Add Step and Select Initialize Variable Again and Input Name and Select Type as Integer

 

rampprakash_3-1653319711313.png

 

7. Write below Expression to Convert string to Integer 

 

 

 

int(variables('STRING Values'))

 

 

 

rampprakash_4-1653319826892.png

 

8. Click Save --> Click Test (at the Top Right)

 

9. Select Manually --> Click Test --> Click Run Flow --> Then Click Done

 

rampprakash_5-1653320013830.png

 

10. That's it 🙂

Comments

*This post is locked for comments

  • JonathanMcNutt Profile Picture JonathanMcNutt 14
    Posted at
    Convert String to Number using Power Automate

    The "accepted" solution does not work. Not sure if it did when posted or not but it does not work now. just get this error:

    The variable 'TCV' of type 'Integer' cannot be initialized or updated with value of type 'String'. The variable 'TCV' only supports values of types 'Integer'.

  • jrmch Profile Picture jrmch
    Posted at
    Convert String to Number using Power Automate

    Love the way you can either like or like this incorrect solution!