exam questions

Exam MB-400 All Questions

View all questions & answers for the MB-400 exam

Exam MB-400 topic 6 question 1 discussion

Actual exam question from Microsoft's MB-400
Question #: 1
Topic #: 6
[All MB-400 Questions]

DRAG DROP -
Five high schools test a custom app from AppSource. They provide feedback that the Course credit entity should include additional fields that cover information shared by the schools.
You do not have access to each high school organization.
Each high school administrator must be able to apply the updates to the Course credit entity.
You need to deliver a custom program that creates the additional fields.
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.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: Call the login logic.
Step 2: Retrieve the Course credit entity metadata by using RetrieveEntityRequest with EntityFilters = Attributes and LogicalName
The RetrieveEntityRequest.EntityFilters property gets or sets a filter to control how much data for the entity is retrieved.
Step 3: Define the AttributeMetaData for each new field.
Step 4: Call the RetrieveAttributeRequest with LogicalName for each new field.
The RetrieveAttributeRequest contains the data that is needed to retrieve attribute metadata.
Reference:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.messages.retrieveentityrequest.entityfilters?view=dynamics-general-ce-9

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sherif_Sobhy
Highly Voted 4 years, 10 months ago
correct order: 6,7,3,4
upvoted 16 times
osx
3 months, 2 weeks ago
yes, I think the same Retrieve cannot be the last step since creation is needed
upvoted 1 times
...
Druey
4 years, 6 months ago
I agree, but only because it is necessary to provide 4 answers. I don't understand why we should retrieve the metadata of the existing attributes. Should we not only create the new ones?
upvoted 2 times
rockique
4 years, 6 months ago
It would be a better practice check whether the new metadata that is about to get created already exists in the environment. I think if we try to create a attribute with existing name we get an exception
upvoted 2 times
...
...
Thomson
4 years, 5 months ago
I’d like to discuss the 2nd step: retrieving the existent fields. I have looked up in the SDK: RetrieveEntityRequest.EntityFilters has the item “Attributes”, but does not have an item “LogicalName” - impossible. The 1st option would work for the 2nd step, but it is not the most efficient way. 2nd option: You don’t have the MetadataId at this moment. The most efficient, working and well-tailored way to get the existent attributes is option 5 (Call the RetrieveAttributeRequest with LogocalName for each new field). So, it is 6,5,3,4
upvoted 2 times
...
CDDT
4 years ago
Correct: the sample query to retrieve : https://carldesouza.com/dynamics-365-get-entity-metadata-using-c/
upvoted 1 times
...
...
marcesepu
Highly Voted 4 years, 10 months ago
Call the CreateAttributeRequest constructor for each new field https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.messages.createattributerequest?view=dynamics-general-ce-9
upvoted 13 times
...
fp75bo
Most Recent 4 years, 4 months ago
6, 7, 3, 4 7: because EntityFilters is required for RetrieveEntityRequest
upvoted 3 times
...
wwaki
4 years, 4 months ago
6,2,3,4 2- couse EntityFilters is obligatory for request 3- before create new attributes you have to define Atribute metadana 4 - CreateAttributeRequest to create attributs for 3,4 https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.messages.createattributerequest?view=dynamics-general-ce-9
upvoted 1 times
...
aniko95
4 years, 10 months ago
why is correct "Call the RetrieveAttributeRequest with LogicalName for each new field" and not "Call the CreateAttributeRequest constructor for each new field"?
upvoted 3 times
Alduzz1985
4 years, 10 months ago
I think "Call the CreateAttributeRequest constructor for each new Field" is the correct answer.
upvoted 10 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago