AxaptaWrapper axSession = SessionManager.GetSession();
AxaptaRecordWrapper userInfo =
  axSession.CreateAxaptaRecord(
    axSession.CallStaticClassMethod("xUserInfo", "find"));
AxaptaRecordWrapper inventTable = 
  axSession.CreateAxaptaRecord(
    axSession.CallStaticRecordMethod("InventTable", "find", "ItemId"));
String itemText =
  (String)inventTable.Call("txt", userInfo.GetField("language"));
The AX code to get similar result is:
return InventTable::find("ItemId").txt(xUserInfo::find().language);
 
