Automatically generate quotelineitem on first save of quote

I want to replicate the Salesforce quote generation and automation of quotelineitem records when saving a new quotel. The Quotelineitems should replicate the opportunitylineitem records. Seems like quite a lot of configuration is required in Skuid to match what Salesforce have built.

I’m guessing this has been done in the past as it’s standard Salesforce functionality, so wondered if anybody had some XML they could send across please?

If not, would anyone be able to guide me through the steps of adding quotelineitems to a quote once the quote record has been saved? The quote is being generated through a pageinclude on the opportunity page where I pass it the opportunity Id through a query string


I had a page that was pretty close. I added a script to generate the quote lines from the opportunity line items. This should get you going.

Be aware that there may be some settings on this page that were peculiar to my use case. You may want to grab any pieces that you need and add them to your page.



{{$Param.lastname}}+', '+{{$Param.firstname}}+MONTH(TODAY())+'/'+DAY(TODAY())+'/'+YEAR(TODAY()) LookupContact row.updated ContactId ({{UnitPrice}}*{{Quantity}})*(1-({{Discount}}/100)) row.updated Product2Id {{Name}} {{Model.label}} Quote QuoteLines Quote QuoteLines IM Patients Contact <skootable showconditions="true" showsavecancel="false" showerrorsinline="true" searchmethod="server" searchbox="false" showexportbuttons="false" pagesize="10" createrecords="true" model="QuoteLines" buttonposition="" mode="read" uniqueid="sk-1_DtBl-207" instantfilters="false"

Thanks very much, i’ve been able to apply this and it’s working great!

If anyone’s looking to do this in Skuid Spark, here’s the API 2.0 Version of the basic functionality for this page

{{$Param.lastname}}+', '+{{$Param.firstname}}+MONTH(TODAY())+'/'+DAY(TODAY())+'/'+YEAR(TODAY())




var $ = skuid.$;
        var opplines =;
        var quotelines =;
        var j=1;
        $.each(, function(i, v) {
               doAppend: true,
               additionalConditions: [
                   {field: 'Product2Id', value: v.Product2Id},
                   {field: 'UnitPrice', value: v.ListPrice},
                   {field: 'Quantity', value: v.Quantity},
                   {field: 'Discount', value: v.Discount}


Quote<br alt="" title="" name=