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

How to send own number in Number field in Custom Api of Purchase Order

(1) ShareShare
ReportReport
Posted on by 85
Hello,
 
I have created the custom api for purchase order where I want to send my own number which I am not albe to do :-( Please suggest me the proper way.

Thanks,

 
I have the same question (0)
  • MA-22070947-0 Profile Picture
    85 on at
    I have also set the number field to editable true.

  • Suggested answer
    Yi Yong Profile Picture
    2,736 Super User 2026 Season 1 on at
    Hello,
     
    I think you are inserting purchase lines without first creating a purchase header with the 'number'.
     
    You will need to add a function to create a purchase header with the 'number'.
  • MA-22070947-0 Profile Picture
    85 on at
    Hi Yong,
     
    I had tried it without adding the lines, but still getting the same error. Can you please guide me what function do I need to use to overcome this issue.
     
    thanks.
  • Suggested answer
    YUN ZHU Profile Picture
    101,948 Super User 2026 Season 1 on at
    This is a bit strange. Not sure if it matters, what is Manual Nos. setting in No. Series?
     
    Thanks
    ZHU
  • Suggested answer
    Yi Yong Profile Picture
    2,736 Super User 2026 Season 1 on at
    Hello,
     
    Why don't you try creating a PO with 'Erp Test 1' manually first and see if the purchase lines can be inserted?
     
    If you managed to insert the purchase lines then it is clear that you did not create the header first.
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,250 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,799 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,390

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans