Skip to main content

Notifications

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,

 
  • Suggested answer
    Yi Yong Profile Picture
    2,095 Super User 2025 Season 1 on at
    How to send own number in Number field in Custom Api of Purchase Order
    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.
     
  • Suggested answer
    YUN ZHU Profile Picture
    84,346 Super User 2025 Season 1 on at
    How to send own number in Number field in Custom Api of Purchase Order
    This is a bit strange. Not sure if it matters, what is Manual Nos. setting in No. Series?
     
    Thanks
    ZHU
  • MA-22070947-0 Profile Picture
    85 on at
    How to send own number in Number field in Custom Api of Purchase Order
    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
    Yi Yong Profile Picture
    2,095 Super User 2025 Season 1 on at
    How to send own number in Number field in Custom Api of Purchase Order
    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
    How to send own number in Number field in Custom Api of Purchase Order
    I have also set the number field to editable true.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans