-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProgram.cs
35 lines (30 loc) · 924 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Dynamics.BusinessConnectorNet;
namespace CallAxMethod
{
class Program
{
static void Main(string[] args)
{
Axapta Ax = new Axapta();
Ax.Logon(null, null, null, null);
string className = "ZFS_TestXML";
string methodName = "getResultTable";
string paramList = null;
AxaptaObject axObj = Ax.CreateAxaptaObject(className);
AxaptaRecord ret = null;
if (paramList != null)
ret = (AxaptaRecord)axObj.Call(methodName, paramList);
else
ret = (AxaptaRecord)axObj.Call(methodName);
while (ret.Found)
{
ret.get_Field(2);
}
axObj.Dispose();
}
}
}