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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / LowerCase first letter...
Power Automate
Unanswered

LowerCase first letter in each sentence in paragraph power automate

(0) ShareShare
ReportReport
Posted on by 431

Hello Power users,

 

Let's say I have a paragraph as

 

"Each template is designed for a specific purpose. For example, there are templates for sending you a text message when your boss emails you, adding Twitter leads to Dynamics 365, or backing up your files. These templates are just the tip of the iceberg. They're intended to inspire you to create customized flows for the exact processes you need.Need help please"

 

And I would like to have first letter in each sentence to be lowered like 

 

"each template is designed for a specific purpose. for example, there are templates for sending you a text message when your boss emails you, adding Twitter leads to Dynamics 365, or backing up your files. these templates are just the tip of the iceberg. they're intended to inspire you to create customized flows for the exact processes you need.need help please"

 

Is there a possible way to achieve this. Can anyone please help me?

 

Thank you so much in advance!

Categories:
I have the same question (0)
  • Luis Arellano Profile Picture
    247 on at

    Hello,

     

    This is a strange requirement but here is my attempt at this.

    Consider that there will be some things that will break it like having more than 1 space at the beginning of a sentence.

     

    Create avariable where you will get the final text.

    In this case I am calling it 'finalText'

     

    Compose action to separate the sentences, assuming you have the text in a variable called "text"

    @{split(variables('text'),'.')}

    LuisArellano_0-1686981308181.png

     

    Apply to each using the outputs from the compose action

    @{outputs('Compose')}

     

    Compose action to now separate each work

    @{split(item(), ' ')}

    LuisArellano_1-1686981356195.png

     

    Condition to check if it starts with a space

    outputs('wordSplit')[0]

    LuisArellano_2-1686981366482.png

     

     

    If yes (note that there is a space at the beginning, this is intended for formatting)

     @{toLower(outputs('wordSplit')[1])} @{join(skip(outputs('wordSplit'),2),' ')}.

     

    If no

    @{toLower(outputs('wordSplit')[0])} @{join(skip(outputs('wordSplit'),1),' ')}.

    LuisArellano_3-1686981458707.png

     

     

  • Verified answer
    Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    Hello  @KrishR ,

     

    as @LuisArellano already said this is really a strange requirment. Please tell me where you need something like this. It looks like homework from school to me 😉

     

    If you don't care about the possibility to have more than one space at the beginning of a sentence (olso mentioned by @LuisArellano ) this would work too.

     

    Matthy79_0-1686993081974.png

     

    if(startsWith(item(), ' '), concat(toLower(take(item(), 2)), skip(item(), 2)), concat(tolower(take(item(), 1)), skip(item(), 1)))
     
    After that you can use join to put the paragraph together again.
  • VictorIvanidze Profile Picture
    13,073 on at

    For what? Why do you need such illogical text transformation?

  • KrishR Profile Picture
    431 on at

    Hi @AlexEncodian , @VictorIvanidze , @Matthy79 and @LuisArellano ,

     

    Thank you so much for all your help in this. I do have a drop down with multiple(multiple text) values to select which has the Sentence starts with Capital letter. These selected options are used in Microsoft word doc generation and they would be used as reasons in a sentence which needs to be lower cased at the beginning of each sentence.

     

    I'm not sure if there is any other way, thought there would be a possibility this way and wanted to check. 

     

    Thank you so much once again for all your help 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard