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

PowerApps Patchの一括登録機能を使って、多数データの登録のパフォーマンスを改善する方法

Last updated at Posted at 2024-10-03

保存先のテーブル

Parent_table

id product_name
1 商品A
2 商品B

普通のPatchの使い方

Patch(
    Parent_table,
    {id:Blank()},
    {
        product_name:"商品C"
    }
);

Patch(
    Parent_table,
    {id:Blank()},
    {
        product_name:"商品D"
    }
);

実行後
Parent_table

id product_name
1 商品A
2 商品B
3 商品C
4 商品D

Patch一括登録の使い方

Clear(save_col);
Collect(
    save_col,
    {
        id:Blank(),
        product_name:"商品c"       
    }
);
Collect(
    save_col,
    {
        id:Blank(),
        product_name:"商品d"       
    }
);

Patch(
    Parent_table,
     SortByColumns(save_col,"product_name")
);

実行後
Parent_table

id product_name
1 商品A
2 商品B
3 商品C
4 商品D

注意点

1.save_colの構造は必ず、テーブル定義と一緒(物理名の使用)
2.一括登録の時、ソートしないと、登録順番がバラバラになる

参考サイト

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