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 :
Small and medium business | Business Central, N...
Answered

POST new items to BC365 using REST API

(1) ShareShare
ReportReport
Posted on by 5

Hi there everyone,

I am trying to make a simple post request to the items endpoint  in Business Central 365. I am currently using Postman. When making the request, I get this response:

"error": {
        "code""Internal_DataNotFoundFilter",
        "message""There is no Item within the filter.\r\n\r\nFilters: No.: 1002  CorrelationId:  19fa1056-e30f-48c7-b667-cd55aa59c9bb."
    }
 
Request to "/api/v2.0/items" endpoint:
{
    "number""1002",
    "displayName""TestItem123",
    "type""Inventory",
    "itemCategoryId""77c91c07-4189-ec11-bb8d-6045bd8e575f",
    "itemCategoryCode""TABLE",
    "blocked"false,
    "gtin""",
    "inventory"4,
    "unitPrice"1503.4,
    "priceIncludesTax"false,
    "unitCost"1172.7,
    "taxGroupId""ecc71c07-4189-ec11-bb8d-6045bd8e575f",
    "taxGroupCode""TAXABLE",
    "baseUnitOfMeasureId""e0c51c07-4189-ec11-bb8d-6045bd8e575f"
}
I have attempted to setup No. series, item templates and API setup but i cannot seem to get it to work.
Could someone please let me know what I am missing/doing wrong?
Really appreciate any help.
I have the same question (0)
  • Dallefeld Profile Picture
    211 User Group Leader on at

    Is your No. Series set to allow Manual No.s? It needs to be for what you are trying to accomplish.

  • Conor Forsey Profile Picture
    5 on at

    pastedimage1646842666197v1.png

    I have created a No. Series and set to manual as you suggest.

    Then in the Item Template page I assign that number series.

    pastedimage1646842751106v2.png

    However, I still get this error when trying to post a new material. I know that is it related to the "number" field but cannot figure out how to fix it.

    pastedimage1646842897070v3.png

    If I change the number to an existing one in the system I get a different error.

  • Suggested answer
    Mohana Yadav Profile Picture
    60,995 Super User 2025 Season 2 on at

    please try with number and disaplyName and see

  • Conor Forsey Profile Picture
    5 on at

    Please elaborate but here is what I think you were asking.

    pastedimage1646847468160v2.png

    Even if I leave displayName blank it refers me back to the number field.

    pastedimage1646847432461v1.png 

  • Verified answer
    Mohana Yadav Profile Picture
    60,995 Super User 2025 Season 2 on at

    1. I mean use number and disaplyName only in Body and remove remaining fields.

    2. Leave number field blank (make sure default No.s is true in No. Series Setup)

  • Conor Forsey Profile Picture
    5 on at

    I can't thank you enough!

    I deleted all field and only had number and displayName, this allows the POST to work with no issues.

    Leaving the number field blank and only populating the displayName with my current No. Series configuration returns the following error:

    "error": {

           "code": "Application_DialogException",

           "message": "It is not possible to assign numbers automatically. If you want the program to assign numbers automatically, please activate Default Nos. in No. Series ITEM.  CorrelationId:  c6ad8048-7d37-4cf8-9182-bbf162213cce."

       }

    But this is perfect, I can continue now.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,990

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,576 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,028 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans