1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ファイル名にタイムスタンプをつけるフロー

Last updated at Posted at 2025-02-01

活用シーン

同名のファイルが上書きされてしまわないように予防したり、単純に一目でいつのファイルか分かるようにしたかったり等。

"ファイル名.jpg""ファイル名_250201031713.jpg"になる。

早速フロー

image.png

Composeの数式

last(split(triggerBody()?['file']?['name'],'.'))

Compose1の数式 1/2

substring(triggerBody()?['file']?['name'],0,sub(length(triggerBody()?['file']?['name']),length(outputs('Compose'))))

Compose1の数式 2/2

formatDateTime(body('Current_time'),'yyMMddhhmmss')

ご指摘いただいたおいしみさんありがとうございます!

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?