function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Saksham MahendruSaksham Mahendru 

Need to call "MultiAdd" layout to add opportunity products from SFDC lightning component placed on Opportunity

Hi All, 

I need to create a button on lightning component that calls "MultiAdd" layout of adding opportunitylineitems. 

Currently I am having following method ;-
callProductLayout : function (component, event, helper) {
    var createRecordEvent = $A.get("e.force:createRecord");
    createRecordEvent.setParams({
        "entityApiName": "OpportunityLineItem"
    });
    createRecordEvent.fire();
}

But it is calling standard Create single record layout of OpportunityLineItem but not multiAdd layout. 

"MultiAdd" is a custom link in (OpportunityLineItem --> Button and Links --> MultAdd).

Thanks in advance.