Skip to main content

Notifications

Business Central forum
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 947 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 71,232 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 947 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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,129 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans