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 :
Supply chain | Supply Chain Management, Commerce
Unanswered

Pick a service item using x++ code

(1) ShareShare
ReportReport
Posted on by 14
Hi,
 
I am working on starting a production order, using x++ code. While posting the picking list journal, I am getting an error as: Item needs to be picked first.
 
In my BOM, I have a raw material and a service item. I need to pick the service item using x++ code.
 
From the UI, I am able to achieve this by going to the pick list journal, selecting the service item line, then clicking the inventory button and selecting pick.
Then creating a new picking line and clicking confirm pick all button. Then I am able to post the journal successfully.
 
Thus, I need the x++ code to pick the service item, so that I can post the picking list journal.
 
Please help on achieving the same.
Thanks.
I have the same question (1)
  • Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
  • arai01 Profile Picture
    14 on at
    Hi Layan,
     
    These links refer to posting of the picking list. When I post the picking list using them, I am getting the error:  Item needs to be picked first.
     
    So I think, first I need to pick the service item , which I am able to do so from the UI as explained above. But I need to do the picking via x++ code and not from the UI.
     
    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 254

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 188 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 131 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans