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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Insert Item in Invoice

(0) ShareShare
ReportReport
Posted on by 10

HI, 

I am developing the integration of the company management with business central via web services.

I'm having problems in creating invoices, I can't set an item.

This is the error: "The Standard Text does not exist. Identification fields and values: Code='xxx"

I have already check it and the code exist correctly.

Can someone help me?

Thanks

I have the same question (0)
  • Suggested answer
    Anks27 Profile Picture
    1,085 on at

    Hello,

    I have gone through your issue for inserting the item for Sales Or Purchase Invoice. As I read your last answer and in that you mentioned that you are using the V2.0 web service so I have one question that are you using Sub-form as web service or Document Line Entity? as per below image?

    Webservice1.png

    For example, I have created one Sales Invoice Line and in my case it's working fine as per below image.

    Webservice2.png

    But if I enter wrong number in the Item Property then it's gave me the error of Item.

    Webservice3.png

    If you are still facing issue then what you need to do is first try to Get Item and then try to copy that number otherwise provide more information with screenshot so, we can give you proper solution.

    Signed, Sealed and Delivered.

    Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah(MCT-Microsoft Certified Trainer || Dynamics 365/Business Development Manager)

     

    Follow/Connect 101 on below

    LinkedIn:-   https://linkedin.com/in/dynamicpower101/

    Twitter:-     https://twitter.com/Dynamicpower101

    Facebook:- https://facebook.com/DynamicPower101/

    Telegram:- https://t.me/dynamicpower101

    Medium:-   https://medium.com/dynamicpower101

  • Alberto P. Profile Picture
    10 on at

    Hi,

    we use the v2.0 version, and according with the fields that I can see on the basic request, I pass this fields:

    Document_Type

    Document_No

    Line_No

    Type

    No

    Quantity

    Unit_Price

    So I already pass the type of line, but I receive the error yet.

  • Suggested answer
    JAngle Profile Picture
    137 on at

    You need to pass a linetype value like the example suggests: 

    POST https://{businesscentralPrefix}/api/v1.0/companies({id})/salesInvoices({id})/salesInvoiceLines
    Content-type: application/json

    {
    "itemId": "id-value",
    "lineType": "Item",
    "quantity": 9
    }

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

News and Announcements

Season of Giving Solutions is Here!

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 1,630

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 926 Super User 2025 Season 2

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 682

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans