Exam PL-400 All QuestionsBrowse all questions from this 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:

    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
btmeera

Associate, none, none, sycn is the correct answer

Flatternschuchtern

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

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

DiemerBenoit

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

BetoJR

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

northstar88

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

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

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

rogrod

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)

Aferdita

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

jkaur

Associate, none, none, sycn

LSgeek

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

4e8b388

Update Contact None Synch

hai297

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

At09

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

oleav

"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

Violoncello

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???

ShaiAtElad

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

pkatsa

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