web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Unable to create job task line via SOAP web service

(0) ShareShare
ReportReport
Posted on by

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);
            }

        }

Categories:
  • Krzysztof Bialowas Profile Picture
    500 on at

    Hi,

    Can you write which page you exposed as a WebService? Then will be able to help you.


    Best regards,

    Krzysztof

  • Community Member Profile Picture
    on at

    Hi,

    We exposed Job Task Lines WebService. Do let me know if any other information needed.

    Thanks

  • Krzysztof Bialowas Profile Picture
    500 on at

    Hi,

    In such case please try to expose the Job Card (Page 88) it should have the method to add the Job and  Job Tasks for it. Or you would need to create new page only for your purpose. The standard one which you use does not allow to modify Job No.

    Best regards,

    Krzysztof 

  • Community Member Profile Picture
    on at

    Hi There,

    We did make the  Job Card page that allowed us to create Jobs via soap web service. Now, the problem is we are unable to create Job task lines associated with a job, as Job task lines do allow create update permissions.  Any idea why such an issue is appearing.

    Thanks

    Ravi Fulani

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans