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

link the Purchase Order Item No field when I linked a new Job Planning line

(1) ShareShare
ReportReport
Posted on by 373
I am trying to link the Purchase Order Item No field when I linked a new Job Planning line, but still, I don't find the codeunit or another way to do it.
 
For example, when I create a new purchase order I am going to link with a new planning line, and after clicking on the new button I want to populate PO No with Job Planning Line No automatically.
 
 
If you know how? I would appreciate it.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    102,608 Super User 2026 Season 1 on at
    Hi, if you follow the standard approach, I think this is difficult to do, because you go from page Purchase Order Subform to page Job Planning Lines first. You need to pass the "No." field, and then pass the value when creating a new Job Planning Line.
     
    I think you can create a new action on the Purchase Order Subform, click it and directly insert a new Job Planning Line and associate it with the Purchase Line. This may be simpler.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • Suggested answer
    Manuel Lozada Profile Picture
    373 on at
    Hi Yun Zhu
     
    Maybe you have a code example?
     
    Thank you for answering my question
     
     
  • Suggested answer
    Jun Wang Profile Picture
    8,220 Moderator on at
    you need to link the po to the jobs no. first before linking it to the planning line no. BUT if you do, BC will create a negative adjustment after you post receipt for the item. this in effect zero out the purchased item. 
    my advice is not to use the link cause it zeros out your purchase. It seems to be a bug to me. Not sure why it was designed this way.
     
    Jun Wang

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

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 580 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 480 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 261 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans