---
title: 委任って何？
tags:  #rpalt #業務改善 #powerapps  
author: [Sakura Yurimiya](https://www.docswell.com/user/yurimiya)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/GJ8K9594ED.jpg?width=480
description: 2023-08-03 RPACommunity ライトニングトーク支部での登壇資料です。 Power Apps の委任についてお話ししました。
published: August 04, 23
canonical: https://www.docswell.com/s/yurimiya/K387VP-2023-08-04-104431
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/GJ8K9594ED.jpg)

委任って何？


# Page. 2

![Page Image](https://bcdn.docswell.com/page/LJLZWYWV7R.jpg)

Power Apps における委任とは？
データソースに検索要求を渡して、
データソース側で処理にしてもらう事
です。
データソース側で検索した結果を、
アプリで受け取るので、アプリ側で
読み込むデータが少なくて済みます。
委任できる処理は、データソースに
よって異なります。
今日のデータ
ください
検索完了！
今日のデータ、
30件渡します


# Page. 3

![Page Image](https://bcdn.docswell.com/page/47MV9N9N7W.jpg)

委任ができない時はどうなるの？
委任できない検索要求は、データソース
側で処理ができません。
その為、アプリ側で受け取れる分だけ
データを受け取って、アプリ側で検索
処理をする必要があります。
今日のデータ
ください
検索できません
全件データを
渡します


# Page. 4

![Page Image](https://bcdn.docswell.com/page/P7R2GDG4J9.jpg)

でもアプリが読み
込めるデータには
制限がある


# Page. 5

![Page Image](https://bcdn.docswell.com/page/PJXDX1XZEX.jpg)

データが2000件を超えると、どうなるの？
委任可能な関数を使用していれば、検索結果がちゃんと出ます。
全10,000件
検索対象：300件
検索済：300件
検索済：300件
検索済：300件


# Page. 6

![Page Image](https://bcdn.docswell.com/page/3JKXW2WVED.jpg)

データが2000件を超えると、どうなるの？
委任できない関数を使用していると、検索結果がちゃんと出ない時があります。
全10,000件
検索対象：300件
未検索：300件
本当は
検索済：10件
検索済：10件
300 件なのに、 10 件しか閲覧できない(´;ω;｀)


# Page. 7

![Page Image](https://bcdn.docswell.com/page/LE3514WQJ5.jpg)

委任できる関数で式を書くのが良き(*’▽’)
この式だと、MAX関数が委任できない
Filter(Test,ID=MAX(Test,ID))
こちらだとすべて委任できる
Filter(Test,ID=First(Sort(Test,ID,SortOrder.Descending)).ID)


# Page. 8

![Page Image](https://bcdn.docswell.com/page/8EDDXQKWEG.jpg)

データソースによって委任できる関数は異なる
SharePoint
Search Operation
Filter
Sort
SortByColumns
Lookup
Search
CountRows, CountIf
First
And / Or
Not
StartsWith
IsBlank
Sum
Average
Min
Max
Dataverse
Data Format
Number
Text
Boolean
DateTime
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
×
〇
×
〇
×
〇
×
〇
×
-
-
-
-
Search Operation
Filter
Sort
SortByColumns
Lookup
Search
CountRows, CountIf
First
And / Or
Not
StartsWith
IsBlank
Sum
Average
Min
Max
Data Format
Number
Text
Boolean
DateTime
Guid
〇
〇
〇
〇
×
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
〇
×
×
〇
×
〇
〇
〇
〇
〇
-
-
〇
〇
〇
〇
×
〇
〇
〇
〇
〇
〇
×
×
×
×
〇
〇
〇
〇
〇
〇
やりたいことが委任できるかを調べるのが大切(*’▽’)
×
〇
〇
〇
〇
〇
〇
-


# Page. 9

![Page Image](https://bcdn.docswell.com/page/V7PXPLKXE8.jpg)

参考文献
 キャンバス アプリでの委任について - Power Apps | Microsoft Learn
 SharePoint - Connectors | Microsoft Learn
 Microsoft Dataverse への接続 - Power Apps | Microsoft Learn
 ヒントとベスト プラクティスを使用して、キャンバス アプリのパフォーマンスを向上
させる - Power Apps | Microsoft Learn
 あなたが作りたいアプリ、どのデータソースを選べばいいか教えます / りなたむ


# Page. 10

![Page Image](https://bcdn.docswell.com/page/2JVL2QV37Q.jpg)

自己紹介
ライトニングトーク支部主催
宝塚歌劇団と明日海りおさんの強火オタク
贔屓の為なら五千里も六千里も行ける気がする！
最近、Microsoft 社のブログに載った（嬉）
note
Twitter


