Question 85 of 103 from exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer

Question 85 of 103 from exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer

Question

An organization has two million customers that are part of the International customer group.

Validation must occur when customer records are updated.

For all customers where the value of the customer group field is international, you must the delivery mode to Air.

You need to update the customer records.

Which two code segments can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

ttsbegin;
while select forupdate CustTable
where CustTable.CustGroup == ‘International?

{

CustTable.DlvMode = ‘Air’;
CustTable.update();
t

ttscommit;

B.

ttsbegin;

update CustTable

set DlvMode = ‘Air?

where CustTable.custgroup =
ttscommit;

‘International’ ;

C.

ttsbegin;

update_recordset CustTable
where CustTable.custgroup == ‘International’
setting DlvMode = ‘Air’;

ttscommit;

D.

ttsbegin;
while select forupdate CustTable

where CustTable.CustGroup == ‘International’
{
CustTable.DlvMode = ‘Air’;
CustTable.doupdate() ;
+

ttscommit;

E.

ttsbegin;
update_recordset CustTable

setting DlvMode = ‘Air?

where CustTable.custgroup == ‘International’ ;
ttscommit;

Explanations

DE.

This is Update and Update_RecordSet Code sample.

Result of both will be same

TestTable TestTable; //Update_Recordset update_recordset TestTable setting Name ="New Enterprises" where TestTable.Accountnum =="uS-027"; //Update ttsBegin; while select forupdate TestTable where TestTable.Accountnum =="uS-027" { TestTable.Name ="New Enterprises"; TestTable.update(); } ttsCommit; info("OK"); Reference: https://community.dynamics.com/ax/b/technicaltutorialsformsdynamicsax2012/posts/update-and-update-recordset-code-sample-in-ax-2012