Microsoft Power Platform Developer — Question 58

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear on the review screen.

You have two tables, account and contact, with a parent-child relationship. Records in the account table can be created in the UI or from an external system integrated with Dataverse by using an Azure Function.

When a user creates a record in the account table, a default record in the contact table must be created automatically.

You need to implement a process to create the contact records.

Solution: Create a JavaScript function that runs when the account record form is saved. Use the Web API in the JavaScript function to create the contact record.

Does the solution meet the goal?

Answer options

Correct answer: B

Explanation

The proposed solution does not meet the goal because creating the contact record directly in the JavaScript function on the account form save event may not guarantee that the contact record is created if the account creation fails or if there are validation issues. A better approach would be to use a workflow or a plugin that triggers after the account record is successfully created, ensuring the contact record is reliably generated.