Question
You have a canvas app that contains the following text input fields: Id, FirstName, LastName. The app also has a button named Button1.
The OnSelect property for Button1 contains the following expression:
Collect(People, {Id:Id.Text, FirstName:FirstName.Text, LastName:LastName.Text})
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Explanation
Statement 1 (Yes): If the data source passed to Collect does not already exist, Collect creates it as a collection. Statement 2 (No): Collect always adds a new record and never matches or updates an existing one, so pressing Button1 again with the same Id creates a duplicate record. To update an existing record you would use Patch or UpdateIf. Statement 3 (No): When Collect is used with a collection, it creates new columns as needed, so adding an Age field to the record adds an Age column instead of causing an error.