Hi. Simple C# example:
X++:
IAxapta2 axapta = new Axapta2Class();
axapta.Logon2(userId, pass, companyId, "", "", "", "", null, null, null);
IAxaptaObject axQuery = axapta.CreateObject("Query", "queryName", null, null, null, null, null);
IAxaptaObject axQBDS = axQuery.Call("dataSourceNo", 1, null, null, null, null, null);
IAxaptaObject axQBDSFields = axQBDS.Call("fields", null, null, null, null, null, null);
axQBDSFields.Call("dynamic", false, null, null, null, null, null);
You make use callEx, CreateObjectEx for more "clean" sintax, without null parameters.