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 / Convert multiple text ...
Power Automate
Unanswered

Convert multiple text fields to number value with conditional nested if in Power Automate before inserting item in SharePoint list

(0) ShareShare
ReportReport
Posted on by 11

I have a form that gets responses as text - always, mostly, etc. I want to leverage Power Automate expression to check and change the value to a number - Always = 5, mostly = 4 etc. before creating item in a SharePoint list

Categories:
  • eric-cheng Profile Picture
    5,171 on at

    Hi @janathan ,

     

    Pass the field into a switch statement and set a variable to 1,2,3 etc.

    Screenshot_20210828-023511_Chrome.jpg

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • janathan Profile Picture
    11 on at

    I have 25 fields that this needs to happen.  25 questions in the form that get answers in text like always, mostly, etc and in power automate it needs to change to numbers where always = 5, mostly = 4 etc.  I was hoping to use an expression in power automate to say if (field = "always", 5, if field = "mostly", 4 etc but not able to figure out the syntax.  your idea is good but it will make the flow so long.

     

    Thanks

  • janathan Profile Picture
    11 on at

    Also, here is how my flow looks.

    janathan_0-1630083748966.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard