3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ユーザー列をLookUp や Filter の条件式で使うコツ

Posted at

はじめに

ごきげんよう、百合宮桜(Miyu)です!
今日はSharePoint Lists のユーザー列を LookUp や Filter の条件式に入れ込む方法を解説します。

ユーザー列の条件式で使いこなす方法

SharePoint Lists のユーザー列は一見名前が入っているだけのように見えます。
image.png

でも実はこんな風に表示名やメールアドレス、部署などたくさんデータが配列なって詰まっています。

image.png

その為、条件式に入れるには通常のように列名だけでなく、ユーザー列のどの項目と比較するか?という要素が必要になります。
例えば、ユーザー列のメールアドレス(Email)が Power Apps にサインインしているユーザーと等しいレコードを LookUp するには以下のような式になります。

LookUp({SharePoint リスト名},{ユーザー列の列名}.Email=User().Email)

image.png

終わりに

いかがでしたか?
ユーザー列は配列に様々な情報が詰まっている列です。どの情報を条件式で使いたいのかをきちんと指定してあげることで格段に使いやすくなります。LookUp や Filter の条件式では異なるデータ型を比較することはできませんので、比較対象のデータ型がユーザー列の比較項目のデータ型と一致しているかの確認もお忘れなく☆彡
それではごきげんよう♪

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?