exam questions

Exam MB-400 All Questions

View all questions & answers for the MB-400 exam

Exam MB-400 topic 5 question 1 discussion

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

A client requires that the system sends 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 answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Xrm.WebApi.online.createRecord()
  • B. Xrm.WebApi.online.updateRecord()
  • C. Xrm.WebApi.online.execute()
  • D. Xrm.WebApi.online.executeMultiple()
Show Suggested Answer Hide Answer
Suggested 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/

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
fvolpe84
Highly Voted 5 years ago
D is also correct, the question ask "what 2 functions"
upvoted 19 times
...
Sherif_Sobhy
Highly Voted 4 years, 11 months ago
correct answers : C and D
upvoted 12 times
...
RaviAjugiya
Most Recent 4 years, 2 months ago
Correct answer is C. D is not correct as question says 'Call the action' and not multiple actions
upvoted 1 times
KenCraw
4 years ago
Question asks "Which two functions achieve this result?"
upvoted 1 times
...
...
jkaur
4 years, 6 months ago
correct answers : CD
upvoted 4 times
...
lollo1234
4 years, 9 months ago
The question is a little bit misleading in the wording buuuuut.... I think it is C and D. Since it says "...you need to call the action...". So basically you would create/send the mail inside the Action so you simply need to **call** it via JS. Furthermore you can pass parameters to the action if needed. You can do that via the execute OR the executeMultiple. For the multiple part you would simply call that one action (one request) but it would still work.... right?
upvoted 6 times
Chrissi
4 years, 7 months ago
I agree. I would also say, that the create email activity and send step is contained in the action. So, you need to execute the action or actions to meet the requirement. Therefore, Answer C and D are correct.
upvoted 2 times
...
KenCraw
4 years ago
This is also what I assume/d. That even though it can be used for multiple, it can technically be used for a single as well (if it works for many, it should work for one... but isn't ideal/proper, just functional)
upvoted 1 times
...
...
Sarahh
4 years, 10 months ago
A and C. Execute Multiple is recommended only if is being executed outside of the platform execution pipeline, such as integration scenarios. So I believe it should be A to create and email and C to execute sending https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/best-practices/business-logic/avoid-batch-requests-plugin
upvoted 1 times
...
sanharshu7
4 years, 11 months ago
Correct Answer C and D
upvoted 3 times
...
ClairFraser
4 years, 11 months ago
you need to create the email first, so A + C
upvoted 4 times
Kirael
4 years, 11 months ago
I agree, A & C are correct !
upvoted 3 times
...
ClairFraser
4 years, 11 months ago
actually I correct myself - C & D are correct. It says - each correct answer is a complete solution, and the web api is doing the create email action (unlike the old sdk) - see here that an entity is passed as parameter and not an email id: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/sendemail?view=dynamics-ce-odata-9
upvoted 2 times
...
...
RobinS
4 years, 11 months ago
Agreed. The answer needs two selections. D is valid to create record.
upvoted 4 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 ...