Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

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

Posted on by 83
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
    Yi Yong 1,382 Super User 2024 Season 2 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
    YUN ZHU 73,647 Super User 2024 Season 2 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
    MA-22070947-0 83 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
    Yi Yong 1,382 Super User 2024 Season 2 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
    MA-22070947-0 83 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans