LoginSignup
0
1

More than 1 year has passed since last update.

Power Automate で文字列の最初の一文字目を大文字に変換する

Last updated at Posted at 2021-12-15

Power Automate を利用していて、システムから出力される結果が小文字だったものを、最初の一文字目だけ大文字に変換したいと思いました。例えば「first letter」を「First letter」に変換したいという感じです。

どうやら、こうした変換は関数を使わなければできないようだったので、忘れても良いようにメモしておきます。

concat(
    toUpper(
        first('first letter')
    ),
    substring(
        'first letter',
        1,
        sub(
            length('first letter'),
            1
        )
    )
)

内容は単純です。toUpper(first('first letter') で、文字列の一文字目だけを取り出し大文字にします。substring(....) で、文字列の二文字目以降を抜き出しています。それらを concat を使って連結して完成です。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1