- (Exam Topic 4)
You are synchronizing company data from a SQL Server-based .NET application into a Common Data Service (CDS) environment.
The data is entered in both the SQL Server and CDS systems. You have a program that includes the following code:
For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.
Solution:
Box 1: No.
An alternate key is needed, not a new field for the record identifier. Box 2: Yes
The specified key attributes are not a defined key for the account entity. Name: EntityKeyNotDefined
Message: The specified key attributes are not a defined key for the {0} entity Box 3: Yes
One way to create an entity is by using the UpsertRequest class. An upsert will create a new entity when there is no existing record that has the unique identifiers included in the entity passed with the request.
Box 4: No Reference:
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/org-service/web-service-error-cod https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/org-service/entity-operations-upda
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
A company has a Common Data Service (CDS) environment. The company creates model-driven apps for different sets of users to allow them to manage and monitor projects.
Finance team users report that the current app does not include all the entities they require and that the existing project form is missing cost information. Cost information must be visible only to finance team users.
You create a security role for finance team users. You need to create a new app for finance team users.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Solution:
Step 1: Edit the Project main form. Select Save as..
Step 2: Create a new model-driven app. Add the project entity, and select the Finance form. Step 3: Enable security roles and select the Finance Security role on the Finance
Assign security roles to the main form. Use this to make a main form available to specific groups. Step 4: In the Maker portal, share the Finance app and select the Finance Security role.
Sharing a model-driven app involves two primary steps. First, associate a one or more security role(s) with the app then assign the security role(s) to users.
Visit https://make.powerapps.com
Select a model-driven app and click Share.
Select the app then choose a security role from the list. Reference:
https://docs.microsoft.com/dynamics365/customer-engagement/admin/assign-security-roles-for
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
A developer must register a step using the Plug-in registration tool.
You need to associate the correct Event Pipeline Stage of Execution with its purpose.
Which stage should you associate with each description? To answer, drag the appropriate stages to the correct descriptions. Each stage may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Solution:
The event pipeline allows you to configure when in the event the plug-in code will execute. The event pipeline
is divided into the following events and stages: Box 1: PreValidation
Pre-event/Pre-Validation
This stage executes before anything else, even before basic validation if the triggering action is even allowed based on security. Therefore, it would be possible to trigger the plug-in code even without actually having permission to do so and great consideration must be used when writing a pre-validation plug-in. Also, execution in this stage might not be part of the database transaction.
Examples:- security checks being performed to verify the calling or logged on user has the correct permissions to perform the intended operation.
Box 2: PreOperation Pre-event/Pre-Operation
This stage executes after validation, but before the changes has been committed to database. This is one of the most commonly used stages.
Example uses:
If and “update” plug-in should update the same record, it is best practice to use the pre-operation stage and modify the properties. That way the plug-in update is done within same DB transaction without needing additional web service update call.
Box 3: PostOperation
Plug-ins which are to execute after the main operation. Plug-ins registered in this stage are executed within the database transaction.
This stage executed after changes have been committed to database. This is one of the most used stages. Example uses:
Most of the “Create” plugins are post-event. This allows access to the created GUID and creation of relationships to newly created record.
Reference:
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/216569/ms-crm-plugin-execution-pipeli
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
A client requires that the system send an email from a button on their customer contact form. You need to call the action from JavaScript.
Which two functions achieve this result? Each correct presents a complete solution. NOTE: Each correct selection is worth one point.
Correct Answer:
C
You can execute action using Xrm.WebApi.online.execute in Dynamics 365 CRM V9.0. Reference:
https://carldesouza.com/calling-a-dynamics-365-action-from-javascript-using-xrm-webapi-online-execute/
- (Exam Topic 4)
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 in the review screen.
An organization has an Azure SQL Database instance that must be synchronized daily with data from Dynamics 365 Sales. A large amount of data might need to be synchronized on some days.
You need to reduce the time required to synchronize data. Solution:
Write a SSIS package to connect to the source and target.
Develop the SSIS package to find the records by the Modified on field.
Create or update the records in the database instance based on results.
Does the solution meet the goal?
Correct Answer:
B
Instead enable change tracking for entities that will be synchronized, and use the Data Export Service to sync data between the database and Dynamics 365 Sales.
Reference:
https://docs.microsoft.com/en-us/power-platform/admin/enable-change-tracking-control-data-synchronization https://docs.microsoft.com/en-us/power-platform/admin/replicate-data-microsoft-azure-sql-database