Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Trying to Create a Production Order via Custom API

Posted on by
Good day,
 
I am trying to create a production order via a custom API since this is not part of the standard API.
Using the below payload:
 
{
    /SourceNo/: /1008/,
    /Status/: /Planned/,
    /LocationCode/: /TestLocation/
}
Results in the following error:
The Production Order does not exist. Identification fields and values: Status='Planned',No.=''
I have been able to create the production order with only SourceNo or LocationCode but not both.
If I create a production order with either SourceNo or LocationCode only and then try to /update/ the production order by specifying the No. I get the following error:
{
    /SourceNo/: /1008/,
    /Status/: /Planned/,
    /No./: /MO101186/
}
An unexpected instance annotation name 'No.' was found when reading from the JSON reader, In OData, Instance annotation name must start with @
Any suggestions as to what I am doing wrong?

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

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... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans