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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Patch Request Job Planning Lines of EdmType 'Collection' are not allowed within Dynamics 365 Business Central OData web services.

(0) ShareShare
ReportReport
Posted on by 245

Hello Experts,

I am trying to insert Unit Cost in Job Planning Line using Odata service in Business Central.

I created one line in Job Planning Line with POST method. The created line did not include Unit Cost or Unit Price.
So I thought update/Patch could insert Unit Cost and Unit Price in Job Planning Line.
However, the following error came out when I did PATCH method.

{
    "error": {
        "code": "BadRequest_MethodNotAllowed",
       "message": "'PATCH' requests for 'ZZJobPlanningLines' of EdmType 'Collection' are not allowed within Dynamics 365 Business Central OData web services. CorrelationId: f28d720f-adb4-4fbd-a658-891e310e7e86."
    }
}
ZZJobPlanningLines is Service Name I created in Web Services.
The data is:
<URL>
api.businesscentral.dynamics.com/.../ZZJobPlanningLines eq 'J00020' and Job_Task_No eq '200' and Line_No eq 20000
<Headers> 
If-Match  W/"JzQ0O0liM3Z0bk1HcTJ6bnlSL20wNWcxOXFLaWhSYVdWWENCTlNKc09zdXpJUWc9MTswMDsn"
<Body>
{
    "Unit_Cost": 1200
}
pastedimage1634653264689v1.png
pastedimage1634653283422v2.png
pastedimage1634653789866v3.png
Please advice me to enter Unit Cost and Unit Price in Job Planning Line via Web Service.
Thank you.
I have the same question (0)
  • Suggested answer
    Tammy Torgerson Profile Picture
    Microsoft Employee on at

    Hello,

    Thank you for reaching out with these questions.

    The process for supplying the Unit Price (at least for a Resource line) is outlined in this forum post: community.dynamics.com/.../1116347

    If you find that this information doesn't help, I would recommend discussing this on one of our communities which have a focus on developer support.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

  • yohi2020 Profile Picture
    245 on at

    Hi Tammy,

    Thank you for your reply.

    I checked the forum you introduced. I did the same way in Job Planning Lines.
    But it didn't work.

    I am afraid if this Job Planning Line Web Service link prohibits updating or deleting the data by default...
    pastedimage1634806237627v1.png

  • yohi2020 Profile Picture
    245 on at

    Is this updating Job Planning Lines "Deep Patching" in Business Central Web Service?

    I am not sure what "Deep Patching" is in Business Central Web Services.
    If this is "Deep patching", it is the limitation of Web Services in Business Central.

    So... it is impossible to update Job Planning Lines via Web Services by BC standard functionalities.

    OData Web Services - Business Central | Microsoft Docs

  • SR-12092246-0 Profile Picture
    6 on at
    Still having the same issues...

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 566 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 347 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 327 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans