web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

"SALESID must be filled in" issue in API request in Pre-PROD environment (tier2) While testing via Postman

(0) ShareShare
ReportReport
Posted on by 15

HI All,

I have developed an API based of type POST, calling which will create sales order header and lines in f&o.

And this works all good in the DEV instance where it was developed.

This has been deployed to the tier2 environment (Pre-Prod)

1. Postman configured for Pre-Prod

2. Token generation is successful

3. Pasted the token in API request and clicked on SEND

4. Exception handling is developed and incorporated well, hence while analyzing the logs it is captured that "Sales ID must be filled in".  I have verified the staging table , both header and lines staging are populated well and as per the payload that was pushed even the salesID generated successfully and loaded in the respective staging

5. Still getting the error "SalesID must be filled in".  

Is it something related to access issue or some XDS policies if there are any?

Can someone please suggest what could be the cause for this?

Again iterating that same code in DEV is working without any issues, I mean upon pushing the payload from postman, we can the sales order header and lines are created successfully

Please suggest!!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi D365 Mania,

    Are you using this API with system administrator privileges? If so, it can't be related to security set up. If you don't have the system administrator role assigned, try this role and check if this is removing the error. Then you know if it is related to security or not.

    If you excluded the security part, you would need to verify settings between the environments or start debugging to find out which exact call is raising the error.

  • D365 Mania Profile Picture
    15 on at

    Hi Andre,

    Thanks for the response.

    I have sys admin role assigned to me.

    Can you please suggest what sort of comparison should I do betweem DEV and Pre-Prod?

    And debugging is not possible as Pre-Prod is a tier 2

    Please help

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi D365 Mania,

    You can read the next article how to debug your Pre-Prod: Debug a copy of the production database - Finance & Operations | Dynamics 365 | Microsoft Learn

  • Zel Profile Picture
    15 on at

    Hi there,

  • Zel Profile Picture
    15 on at

    Have you tried creating sales order headers and lines with the standard Entities?

    Have you tried performing a read to see what the output is?

    Perhaps also double check the number sequence

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 283 Super User 2025 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 213 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 152 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans