ファイル名からシングルクオーテーションを削除したい

お世話になっております。
ファイル名からシングルクオーテーションを削除したいのですが、うまくいきません。
成功することもあれば、失敗することもあり、挙動が安定しません。
以下のように組んでいます。よい方法はありますか?
currentItem.OriginalFilename.Replace(“'”,“”).Replace(“’”,“”)

追記です。
シングルクオーテーションが入っていないファイル名が変になることがあり、困っています。
契約書_20231001-1_LEGALCHECK-12121_edabanP20240509033-2.docx

契約書_20231001-1_LEGALCHECK-12121_edaban.docx

Hi @FSP

Can you share sample filename how it looks like.

Regards

Thank you.
I have added this to the original question.

Hi @FSP

what is happening with your flow if there is no single quote?

Regards

1 Like

すみません。
こちら、変換の問題ではなく、
currentItem.OriginalFilename→currentItem.Name
に変更したら、おかしな挙動はなくなりました。
現在のファイル名ではなく、最初のファイル名に戻してしまっていたようです。
大変失礼しました。

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.