• Saksham Mahendru
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
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.