Community

How to count recods of the lineItems in INVOICES.

I need to count how many line-items a invoice have.

That way I can treat that document as Exception, in case line-intems counter = 0.

Thanks.

0

Comments

1 comment

  • Avatar
    Mattkitchen

    Hi javsuc,

    Please try the following script:

    if(Document.HasField("Invoice Layout\\LineItems"))

       int count = Document.Field("Invoice Layout\\LineItems").Items.Count;

     

    0

Please sign in to leave a comment.