3
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?

More than 1 year has passed since last update.

[UiPath]項目を選択アクティビティでワイルドカードを使う

Posted at

項目を選択アクティビティのおさらい

UiPathを使って自動化するときにリスト項目から選ぶ時がある。
例えばこのようなケース

image.png

この要素を選ぶときには「項目を選択」というアクティビティを使う。
「選択する項目」プロパティには文字列型で値が入る。
image.png

文字列が固定ではない場合

この文字列型はリストから選ぶ形式になっている。
多くのケースでは問題ない。例えば「男性」「女性」を選ぶようなケースは動的にリスト項目が変わるものではない。

今回の例では、本日の日付の場合は【本日】というプレフィックスがつき、曜日や祝日が含まれる。
動的に文字列を作れなくはないが、苦労する。

ワイルドカードを使える

実はワイルドカードを使える。

"*8月14日*"

image.png

ワイルドカードを使うことで前後の文字列に関わらず選択可能。
以下のように正しく選択できている。
image.png

3
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
3
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?