Is it possible for a snippet to retrieve quote line items from quote?

  • 1
  • Question
  • Updated 5 years ago
Is it possible to write a snippet to retrieve quote line items from a quote? The page contains
only Quote Model and a related task table. I would like to copy all quote line item details into a new task description field?
Photo of Jaust


  • 462 Points 250 badge 2x thumb
  • unsure

Posted 5 years ago

  • 1
Photo of Jaust


  • 462 Points 250 badge 2x thumb
Guys, I figured this out and was able to accomplish this using the ChildRelationship tutorial.
I am yet to see what Skuid cannot accomplish. Great work guys.

I am attaching the code just for others help.

var field = arguments[0],
        value = arguments[1];

    var quoteId =;
    var quoteModel = skuid.model.getModel('QuoteData');
    var quote = quoteModel.getRowById(quoteId);
    var dt = field.metadata.displaytype;
    if (field.mode != 'edit') {
    } else {
    var tmpDesc = '';
        var qli = quote.QuoteLineItems.records[i];
        tmpDesc = tmpDesc + qli.Description + '\n' + qli.Quantity + '\n' + qli.UnitPrice + '\n' + qli.TotalPrice + '\n\n';

Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,828 Points 20k badge 2x thumb
Glad we were able to help.   I was also going to point you to a tutorial where we mass create statements for every contact on an account.  This pulls all the contacts (Children of the account) and creates new statements records for each one.   Lots of concepts are the same:

Here is shameless request.  We'd love it if you'd copy your second line above as a  review on the app exchange...  Here is the link: 

Thanks again!
Photo of Jaust


  • 462 Points 250 badge 2x thumb
Will definitely post a review as soon as we complete few more pending items in our list
and purchase Skuid Licenses :-)  The only other support of this kind is Rackspace's Fanatic Support,