exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 3 question 21 discussion

Actual exam question from Microsoft's PL-400
Question #: 21
Topic #: 3
[All PL-400 Questions]

You have the following code:

You have a contact record that uses the GUID 991bf2fd-d40c-4752-9984-26b7c0455b69.
You need to assign the contact record as the primary contact for an account when you create the account.
Which two code segments can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. var data = { "name": "Contoso account", "primarycontactid": { "logicalname": "contact", "id": "991bf2fd-d40c-4752-9984-26b7c0455b69" } };
  • B. var data = { "name": "Contoso account", "[email protected]": "/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };
  • C. var data = { "name": "Contoso account", "[email protected]": "/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };
  • D. var data = { "name": "Contoso account", "primarycontactid": "/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
No_Doubt
Highly Voted 1 year, 11 months ago
Selected Answer: AB
Correct https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-webapi/createrecord
upvoted 5 times
...
Juan0414
Most Recent 1 month, 3 weeks ago
Selected Answer: AB
https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-webapi/createrecord#associate-tables-on-creating-new-records
upvoted 1 times
...
PatrickVogtner
7 months ago
Selected Answer: B
The documentation states that the lookup object in A is deprecated and that @odata.bind is recommended for both online and offline scenarios.
upvoted 2 times
...
markjr
10 months, 2 weeks ago
Selected Answer: AB
Correct AB
upvoted 1 times
...
At09
1 year ago
A and B, however A doesn't work when you try in CE but theoretically it would work as per microsoft article;)
upvoted 2 times
...
Sudheer93
1 year, 1 month ago
In exam 09/23/2023
upvoted 1 times
...
HiJaak
1 year, 1 month ago
Selected Answer: AB
Correct AB, even A is a deprecated method for mobile offline scenario.
upvoted 3 times
...
jkaur
1 year, 2 months ago
AB correct!
upvoted 1 times
...
leoprepexam97
1 year, 5 months ago
B and C are identical... why???
upvoted 3 times
df14ce0
1 year, 4 months ago
there are differents @ODatabind and @ODataContext
upvoted 4 times
...
...
hertino
2 years, 1 month ago
Correct
upvoted 1 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