PL-400 Exam QuestionsBrowse all questions from this exam

PL-400 Exam - Question 238


HOTSPOT -

A travel agency uses Dynamics 365 Sales.

Customers are allowed to add up to three regions to their travel preferences from the website. Customer preferences must be stored in the Contact entity. An error message must display if customers enter data incorrectly. You create a plug-in.

You need to register the plug-in to meet the requirements.

Which value should you apply for each parameter? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Show Answer
Correct Answer:

Box 1: create -

An error message must display if customers enter data incorrectly.

The message must be created -

Box 2: contact -

Customers are allowed to add up to three countries/regions to their travel preferences from the website. Their preferences must be stored in the Contact entity.

Box 3: region -

Customers are allowed to add up to three regions to their travel preferences from the website. Customer preferences must be stored in the Contact entity

Box 4: synchronous -

A synchronous plug-in will cause the operation to wait until the code in the plug-in completes. This has an impact on perceived performance of the system. The operations in an asynchronous plug-in are placed in a queue and are executed after the operation is completed so that the operation can complete with minimal interruption.

Reference:

https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/tutorial-write-plug-in

Discussion

17 comments
Sign in to comment
btmeera
Oct 2, 2021

Associate, none, none, sycn is the correct answer

Flatternschuchtern
Sep 20, 2022

Incorrect, "Customer preferences must be stored in the Contact entity." My guess there are just 3 fields. The correct answer is 1) Update 2) Contact 3) None 4) Synchronous

AADAdmin1
Jan 4, 2023

Explained here: https://community.dynamics.com/crm/b/mylifemicrosoftdynamiccrm/posts/ms-dynamics-crm-associate-disassociate-message-plugin

DiemerBenoit
Oct 12, 2021

When you register a plugin on Associate message, you have to leave “Primary and Secondary” entities as ‘none’.

BetoJR
Mar 9, 2022

What about "update, contact, none, synchronous"? Just curious...

northstar88
Sep 17, 2022

Update Contact none Sync Customers are allowed to add up to three regions << this is unclear, but to me this sounds like the number of available regions are already predetermined (three), which mean it's possible that "preferences" is an optionset. Customer preferences must be stored in the Contact entity. << already a clear indication that Contact entity is the one getting updated. Lastly it has to be sync because we want the error to appear if the validation failed. Async will not throw an error on screen.

BlueP
Jun 26, 2022

The wording of the question makes this tricky: "Customer preferences must be stored in the Contact entity" - this makes me think that the region data is not an secondary entity (for example Multi-select option), hence the contact has to be updated not associated with another entity. if that is the case the message would be update, primary entity - contact secondary - none Execution would be synchronous because we would need to validate the data and display error message in real time - "An error message must display if customers enter data incorrectly" I can also see it the other way where the region is a separate entity and then you would have to associate these with a contact. If this is on the exam I will go with my gut feeling and go with update

No_Doubt
Nov 11, 2022

There is difference between 1- How the question is requesting the design? 2- What's the best practice? In order to answer Q1, the answer is Update, Contact, None, Synchronous, where the contact entity has 3 lookup fields to the region entity called [Travel Preference 1 - Travel Preference 2 - Travel Preference 3], since the question is mentioning "Customer preferences must be stored in the Contact entity" To answer Q2, the answer is to register the plugin-in on the Associate message in the pre-validate pipeline, with primary and secondary entities = None, and execution mode same as Q1, Synchronous. For me, I will answer the question as it is and go with Q1: Update, Contact, None, Synchronous

Aferdita
Mar 4, 2022

https://www.examtopics.com/discussions/microsoft/view/22293-exam-mb-400-topic-6-question-6-discussion/

rogrod
Sep 15, 2022

Associate will not store the preferences info in Contact Entity... It seems that preferences are simple lookups fields on contact entity, so correct message must be "Update". In my opinion: "Update" (preferences stored in contact entity), "Contact", "None", "Syncronous" (must be throw an error to user if data wrong)

jkaur
Aug 16, 2023

Associate, none, none, sycn

pkatsa
May 1, 2022

isn't Associate/Disassociate messages only for N-N relationship adding only? https://community.dynamics.com/crm/b/mylifemicrosoftdynamiccrm/posts/ms-dynamics-crm-associate-disassociate-message-plugin

ShaiAtElad
May 28, 2022

According to this link - https://docs.microsoft.com/en-us/power-apps/developer/data-platform/register-plug-in , Secondary Inage "This field remains for backward compatibility for deprecated messages that accepted an array of EntityReference as the Target parameter. This field is typically not used anymore." so null sounds right

Violoncello
Aug 8, 2022

So, it seems we agree on "sync"... About "Associate, none, none": This plugin will fire on *any/every* entity that gets associated with *any/every* entity. Do we really want a plugin firing *ALL* the time???

oleav
Apr 6, 2023

"You need to register the plug-in to meet the requirements." ... so I understand its about registraiton https://learn.microsoft.com/en-us/power-apps/developer/data-platform/tutorial-write-plug-in#register-a-new-step So it's correct: Create, Contact, Region, Synchronous Almost all post here is about method to perform data operation - Create, Retrieve, RetrieveMultiple, Update, Delete, Associate, and Disassociate

At09
Oct 4, 2023

Multi Select OptionSet .... Ringing a bell ? lol

hai297
Apr 2, 2024

Message: update ("Customer preferences" must be stored in the Contact entity) Primary: Contact Secondary: Region and None are sense, but Region is more sense for validation Sync

4e8b388
May 3, 2024

Update Contact None Synch

LSgeek
Jul 17, 2024

Message: update Primary Entity: contact Secondary Entity: none Execution Mode: synchronous