PdfPrep.com

Which two segments can you use?

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 segments can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

A)

B)

C)

D)

E)

A . Option A
B . Option B
C . Option C
D . Option D
E . Option E

Answer: DE

Explanation:

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

Exit mobile version