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 ForAll を使う時、よくbugを発生します

Posted at

問題があるソースコード

ForAll(colA,
Filter(test_table,id=ThisRecord.id) And ThisRecord.status='Edit'
Patch(test_table
{id= ThisRecord.id},
{
status:ThisRecord.status
}
);
);

問題点

Filter(test_table,id=ThisRecord.id)のThisRecord.idは曖昧です。
ForAllを利用するとき、ForAll(colA As parentRecord,のように使うことをお勧めします。

修正後のソースコード

ForAll(colA  As parentRecord,
Filter(test_table,id=parentRecord.id) And parentRecord.status='Edit'
Patch(test_table
{id= parentRecord.id},
{
status:parentRecord.status
}
);
);
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?