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

【PowerAppsメリット集(その1)】参照列を利用するとコードが短くなる

Last updated at Posted at 2022-09-19

参照列を利用した場合、ID連携に比べて、そもそも参照しているので連携(LookUp)する必要がない

例えば以下のようなモデルの場合
image.png

すでに参照されているので、以下のように記載すればデータを取得できる

ClearCollect(cart_and_product_cal,ForAll
    (cart_tbl,
        {
            count_products:ThisRecord.count_products,
            product_name:ThisRecord.product_tbl.product_name,
            category:ThisRecord.product_tbl.category,
            price:ThisRecord.product_tbl.price
        }
    )
);

実行結果
image.png

上記コレクションに対して各種処理 GropByなりSumなりすればよい
すごくシンプルである。

参考文献:https://m365powerapps.kagoyacloud.com/ ← よくまとまってます

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