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 :
Small and medium business | Business Central, N...
Suggested Answer

The unit price is not saved when Adding a Resource in a Job Planning Line through OData

(0) ShareShare
ReportReport
Posted on by 10

For some reason, The unit Price is not saved when I try to create a Job Planning Line through OdataV4 APi. I tried to patch the recently created line, but that's not working as well. any thoughts?

pastedimage1606279532643v1.png

  • Bilal Haider Profile Picture
    487 on at

    Hi,

    I have also got this issue before and solved. Can you share the request that you are using for patch.

  • Suggested answer
    JAngle Profile Picture
    159 on at

    I would create your own page for this task. The unit price field has a variable controlling the editable property which is run OnAfterGetRecord. These triggers work out well for the regular UI put not always for OData.

  • Bilal Haider Profile Picture
    487 on at

    @Josh you are right about this.

    But that control is used to restrict user changing unit price of planning line that has some quantity transferred to Invoice. Is it fine to override this control?

  • Suggested answer
    Moorthy Profile Picture
    10 on at

    My issue is solved now.

    Here is How,

    I have to send a second API call (PATCH) to update the unit price after creating an entry

    But I used asterisk , as opposed to e-tag. in the header (If-Match *) - This was the part that solved my issue

    2020_5F00_11_5F00_25_5F00_07_5F00_35_5F00_04_5F00_Postman.png

  • Bilal Haider Profile Picture
    487 on at

    Great, This is really helpful @Moorthy

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 August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 796 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 377 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans