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...
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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.

REQ -

REQ-

{
    "Description": "Test test",
    "Contact_No": "CT000004",
    "Salesperson_Code": "JO",
    "Priority": "Normal",
    "Sales_Cycle_Code": "NEW",
    "SalesCycleStage": [
        {
            "Entry_No": 1,
            "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"
        }
    ]
}

pastedimage1622819447393v1.png

  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    Hi,

    I'm not sure if this is what you are looking for, but are you using API or SOAP or OData? If possible, use API. As soon as you have a page of type API, you do not need to register it. Your syntax for a SOAP body looks OK.

    One example of multi-table updates can be found here

    www.kauffmann.nl/.../

    As mentioned, I am not sure this is what you were looking for? Let us know if this helps you (or not).

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 728 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 545 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 328 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans