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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Business Central Opportunity - 5124 web service ,creating line item is not able a create through API

(0) ShareShare
ReportReport
Posted on by

Hi, I hav created a web service Opportunity - 5124 and published, was able to create an opportunity but not able to create line items through API post method.

REQ-

{
    "Description": "Test test",
    "Contact_No": "CT000004",
    "Salesperson_Code": "JO",
    "Priority": "Normal",
    "Sales_Cycle_Code": "NEW",
    "OppCardLineItem": [
        {
            "Entry_No": 3,
            "Active": true,
            "Action_Taken": "Won",
            "Sales_Cycle_Stage": 0,
            "Sales_Cycle_Stage_Description": "",
            "Days_Open": 0,
            "Estimated_Value_LCY": 5500,
            "Calcd_Current_Value_LCY": 5500,
            "Completed_Percent": 100,
            "Chances_of_Success_Percent": 100,
            "Probability_Percent": 100,
            "Close_Opportunity_Code": "CONSULT_W"
        }
    ]
}
  • Suggested answer
    JAngle Profile Picture
    161 on at

    In the regular UI you cannot do that so the web service does the same. If you want to bypass the regular UI logic you’ll need a custom page or api page - latter being the preference at this point in time

  • Community Member Profile Picture
    on at

    Hi, i have created web services for  Sales Cycle Stages-5125, Opportunity Entries-5130, Sales Cycle Stages-5121 entities and published them but not sure how to map or link to the opportunity header.

    can anyone help with creating a line item through API under an opportunity.

    which table should be enabled as a webservice  or any syntax for request body to insert the line item.

    pastedimage1622804241341v2.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 645 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 432 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 248 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans