Hi,
We are working with external Integration with Business central and successfully created Jobs in Business central using SOAP web service. But we are facing some problem in creating Job task lines in BC. The error we are getting during creation is 'Field Job No is readonly'. Can anyone help in letting us know how to make a job task line in such case and why we are getting this error? I am attaching the code below that we are using
static public void CreateJobTasks()
{
try
{
Job_Task_Lines_Service ws = new Job_Task_Lines_Service();
ws.Credentials = new NetworkCredential("username",”password”);
Job_Task_Lines JobTasks = new Job_Task_Lines();
JobTasks.Job_No = "00151";
JobTasks.Job_Task_No = "1000";
JobTasks.Description = "Test";
ws.Create(ref JobTasks);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}