Answer is D. Please refer MS article:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/updaterecord
Correct!
GPT:
Analysis of Options
catch(error) { alert("Caught error: " + error.message); }
✅ Valid JavaScript syntax, but ❌ alert() is not recommended for logging errors in a production environment.
Exception exception = Server.GetLastError(); if(exception != null)}
❌ Incorrect—This is C#/.NET syntax and does not work in JavaScript.
catch(exception e){ console.writeline(e)}
❌ Incorrect—console.writeline(e) is not a valid JavaScript function (it's from C#).
function (error){ console.log(error.message)}
✅ Correct answer—Uses JavaScript's logging mechanism properly with console.log(error.message)
The .then() method returns a promise which expects two arguments: a callback function for the success and one for the error case! so the correct answer is D!!
This section is not available anymore. Please use the main Exam Page.PL-400 Exam Questions
Log in to ExamTopics
Sign in:
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.
PappuKumar
Highly Voted 3 years, 6 months agonivanpee
Highly Voted 3 years, 5 months agoJuan0414
Most Recent 3 months, 3 weeks agob86b167
9 months, 3 weeks agoryanzombie
10 months agolezzles11
1 year, 10 months ago28122016
1 year, 11 months agoleoprepexam97
2 years, 1 month agooleav
2 years, 2 months agoMoradmoro
2 years, 4 months agoMrWood47
2 years, 5 months agoCRMBug
2 years, 7 months agoTheExamMaster2020
2 years, 7 months agokvargas90
2 years, 8 months agoFabsworth
3 years, 3 months agoPrincipalJoe
3 years, 4 months agoppguru
3 years, 5 months agoDimpleG
2 years, 4 months ago