Activity Forums Salesforce® Discussions Is it possible to bulk insert a record using recordEditForm component in Salesforce?

  • Avnish Yadav

    Member
    July 30, 2018 at 5:15 am

    Hello Madhulika,

    Yes, it is possible but you would need to create lightning:recordEditForm objects (or, just place them in an aura:iteration). Each lightning:recordEditForm creates only one record, so you'd have to submit them all separately.

    Thanks.

  • shariq

    Member
    September 18, 2018 at 12:15 am

    Hi,

    To add into above

    Example - 

    <aura:component implements="force:appHostable,lightning:actionOverride,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes" access="global">
    <aura:iteration items="1,2,3" var="iterate">
    <lightning:recordEditForm aura:id="editForm" objectApiName="Account">
    <lightning:inputField fieldName="Name"/>
    </lightning:recordEditForm>
    </aura:iteration>
    <lightning:button aura:id="submit" onclick="{!c.handleSubmit}" label="Save" class="slds-m-top_medium" />

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos