1. Create new method and write code.
2. Find you service object in AOT and Add service operation. Select checkbox and press OK.
3. In Visual Studio add reference to your service.
4. Now can call your custom AX method in C# code.
private int GetEmplVacationDays(string _emplID, DateTime _from, DateTime _to)
{
var emplServiceClient = new goEmplTableServiceClient();
int ret;
try
{
ret = emplServiceClient.calcDays(_emplID, _from, _to);
}
catch (Exception xException)
{
ret = 0;
}
return ret;
}
Thanks for sharing Microsoft Dynamics AX Technical Training
ReplyDeleteMicrosoft Dynamics AX Technical Training in Hyderabad
MS Dynamics Technical Online Training
MS Dynamics AX Technical Training in Hyderabad valuable information.
VdispprosPannu Christina Walker https://marketplace.visualstudio.com/items?itemName=8cestracamu.The-Light-Keeps-Us-Safe-gratuita
ReplyDeletefoadoflogoff
acibcongaEvansville Penny Brooks programs
ReplyDeleteprogram
Software
odadntegmye