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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Changing text in flow

(0) ShareShare
ReportReport
Posted on by 9

New to flow so not sure of all functions and need some help.

 

I have a flow which is initiated by an email arriving into a shared mailbox. The body of the email contains only 1 item of text (I have a step where it converts it from html to text).

 

This text is limited to only 15 options (EP01-EP05, EA01-EA05, EL01-EL05).

 

My next part of my flow is to create a task in planner based off the text that is input. I will use a switch to create this as it will be 3 different tasks. I really don't want to make 15 different switch conditions so looking for a way to convert the text from EP01 to just EP, for example, easily so I don't have to make 15 different switch options????

 

Thanks in advance

I have the same question (0)
  • Verified answer
    MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: Changing text in flow

    Hello @tlw1779 ,

    you can use the following expression in a "Compose" action:

    if(contains(outputs('Compose'),'EP'), 'EP', if(contains(outputs('Compose'),'EA'), 'EA',if(contains(outputs('Compose'),'EL'),'EL','')))

     

    MarconettiMarco_0-1661325764251.png

     

     

    Please let me know if the issue is fixed.

    I may not have all the answers, but I'm curious and passionate enough to keep looking for answers and to keep sharing them.


    If I have answered your question, please mark my post as Solved.
    If you like my response, please give it a Thumbs Up.


    My blog site about Power Automate: https://powerautomatejoy.com/

    BR,

    Marco

  • tlw1779 Profile Picture
    9 on at
    Re: Changing text in flow

    Thank you so much. I knew it would be something simple but I don't have enough experience yet. I really appreciate the quick response.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard